Skip to content

Commit 04f2853

Browse files
committed
Cut final image FROM python:3.11-alpine
1 parent 031faed commit 04f2853

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/abhinavsingh/proxy.py:base
1+
FROM ghcr.io/abhinavsingh/proxy.py:base as builder
22

33
LABEL com.abhinavsingh.name="abhinavsingh/proxy.py" \
44
org.opencontainers.image.title="proxy.py" \
@@ -39,6 +39,9 @@ RUN /proxy/venv/bin/pip install --no-compile --no-cache-dir \
3939
rm -rf /root/.cache/ && \
4040
pip uninstall -y pip
4141

42+
FROM python:3.11-alpine
43+
COPY --from=builder /README.md /README.md
44+
COPY --from=builder /proxy /proxy
4245
ENV PATH="/proxy/venv/bin:${PATH}"
4346
EXPOSE 8899/tcp
4447
ENTRYPOINT [ "proxy" ]

0 commit comments

Comments
 (0)