File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ LABEL com.abhinavsingh.name="abhinavsingh/proxy.py" \
1414 org.opencontainers.image.vendor="Abhinav Singh"
1515
1616ENV PYTHONUNBUFFERED 1
17+ ENV PYTHONDONTWRITEBYTECODE 1
1718
1819# Install paramiko and cryptography to allow
1920# users to use tunneling features using Docker
@@ -28,10 +29,13 @@ RUN apk update && apk --no-cache add \
2829 rust \
2930 make
3031RUN python -m venv /proxy/venv && \
31- /proxy/venv/bin/pip install --no-cache-dir \
32+ /proxy/venv/bin/pip install --no-compile --no- cache-dir \
3233 -U pip wheel && \
33- /proxy/venv/bin/pip install --no-cache-dir \
34+ /proxy/venv/bin/pip install --no-compile --no- cache-dir \
3435 paramiko==3.4.0 \
3536 cryptography==39.0.1 \
36- --prefer-binary
37- RUN apk del .builddeps
37+ --prefer-binary && \
38+ apk del .builddeps && \
39+ find . -type d -name '__pycache__' | xargs rm -rf && \
40+ rm -rf /var/cache/apk/* && \
41+ rm -rf /root/.cache/
You can’t perform that action at this time.
0 commit comments