Skip to content

Commit 3033cad

Browse files
committed
SSL in final copy
1 parent 5052df7 commit 3033cad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ RUN /proxy/venv/bin/pip install --no-compile --no-cache-dir \
3333
--find-links file:/// \
3434
proxy.py && \
3535
rm *.whl && \
36-
if [[ -z "$SKIP_OPENSSL" ]]; then apk update && apk --no-cache add openssl; fi && \
3736
find . -type d -name '__pycache__' | xargs rm -rf && \
3837
rm -rf /var/cache/apk/* && \
3938
rm -rf /root/.cache/ && \
@@ -43,6 +42,12 @@ RUN /proxy/venv/bin/pip install --no-compile --no-cache-dir \
4342
FROM python:3.11-alpine
4443
COPY --from=builder /README.md /README.md
4544
COPY --from=builder /proxy /proxy
45+
RUN if [[ -z "$SKIP_OPENSSL" ]]; then \
46+
apk update && \
47+
apk --no-cache add openssl && \
48+
rm -rf /var/cache/apk/* && \
49+
rm -rf /root/.cache/; \
50+
fi
4651
ENV PATH="/proxy/venv/bin:${PATH}"
4752
EXPOSE 8899/tcp
4853
ENTRYPOINT [ "proxy" ]

0 commit comments

Comments
 (0)