File tree 1 file changed +8
-4
lines changed 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" \
14
14
org.opencontainers.image.vendor="Abhinav Singh"
15
15
16
16
ENV PYTHONUNBUFFERED 1
17
+ ENV PYTHONDONTWRITEBYTECODE 1
17
18
18
19
# Install paramiko and cryptography to allow
19
20
# users to use tunneling features using Docker
@@ -28,10 +29,13 @@ RUN apk update && apk --no-cache add \
28
29
rust \
29
30
make
30
31
RUN 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 \
32
33
-U pip wheel && \
33
- /proxy/venv/bin/pip install --no-cache-dir \
34
+ /proxy/venv/bin/pip install --no-compile --no- cache-dir \
34
35
paramiko==3.4.0 \
35
36
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