Skip to content

Commit 0380e83

Browse files
committed
--no-cache-dir to avoid bloating the docker image
1 parent 58f8847 commit 0380e83

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

DockerfileBase

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
FROM python:3.11-alpine
22

33
LABEL com.abhinavsingh.name="abhinavsingh/proxy.py" \
4-
com.abhinavsingh.description="⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • \
4+
org.opencontainers.image.title="proxy.py" \
5+
org.opencontainers.image.description="⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • \
56
😈 TLS interception • 🔒 DNS-over-HTTPS • 🔥 Poor Man's VPN • ⏪ Reverse & ⏩ Forward • \
67
👮🏿 \"Proxy Server\" framework • 🌐 \"Web Server\" framework • ➵ ➶ ➷ ➠ \"PubSub\" framework • \
78
👷 \"Work\" acceptor & executor framework" \
8-
com.abhinavsingh.url="https://github.com/abhinavsingh/proxy.py" \
9-
com.abhinavsingh.vcs-url="https://github.com/abhinavsingh/proxy.py" \
9+
org.opencontainers.url="https://github.com/abhinavsingh/proxy.py" \
10+
org.opencontainers.image.source="https://github.com/abhinavsingh/proxy.py" \
1011
com.abhinavsingh.docker.cmd="docker run -it --rm -p 8899:8899 abhinavsingh/proxy.py" \
11-
org.opencontainers.image.source="https://github.com/abhinavsingh/proxy.py"
12+
org.opencontainers.image.licenses="BSD-3-Clause" \
13+
org.opencontainers.image.authors="Abhinav Singh <mailsforabhinav@gmail.com>" \
14+
org.opencontainers.image.vendor="Abhinav Singh"
1215

1316
ENV PYTHONUNBUFFERED 1
1417

@@ -25,9 +28,9 @@ RUN apk update && apk --no-cache add \
2528
rust \
2629
make
2730
RUN python -m venv /proxy/venv && \
28-
/proxy/venv/bin/pip install \
31+
/proxy/venv/bin/pip install --no-cache-dir \
2932
-U pip wheel && \
30-
/proxy/venv/bin/pip install \
33+
/proxy/venv/bin/pip install --no-cache-dir \
3134
paramiko==3.4.0 \
3235
cryptography==39.0.1 \
3336
--prefer-binary

0 commit comments

Comments
 (0)