Commit Graph

5 Commits

Author SHA1 Message Date
Abhinav Singh 39854e1d79
Use Python 3.12 as default Docker base image (#1445)
* Use Python 3.12 as default Docker base image

* Add standard OCI labels
2024-08-10 10:28:53 +05:30
Abhinav Singh 7bb04c020a
Include `openssl`, `cryptography` and `paramiko` in default DockerHub image (#1409)
* Include `openssl` in docker images to let users try TLS interception using dockerhub images

* Include `requirements-tunnel.txt` within docker image to let users try tunneling using docker images

* Docker is always using py311+, hardcode for now

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Simply `apk add py-cryptography`

* --prefer-binary

* Build deps for cryptography

* make required by pynacl

* Prepare to use base image once it has been published

* Prepare image from `ghcr.io/abhinavsingh/proxy.py:base`

* --no-cache-dir to avoid pip cache bloating

* Optimize base image size

* Use find

* `-y`

* Cut final image `FROM python:3.11-alpine`

* Remove global setuptools and local pip too

* wheel it too

* end and flush

* Try `42.0.4` in next base

* Full path cleanup

* SSL in final copy

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-16 00:34:26 +05:30
Abhinav Singh f19db0ce1b Optimize base docker image size 2024-05-15 20:24:41 +05:30
Abhinav Singh 0380e8301d `--no-cache-dir` to avoid bloating the docker image 2024-05-15 17:16:38 +05:30
Abhinav Singh 32a6bdd47f
DockerfileBase (#1410) 2024-05-15 16:36:49 +05:30