Skip to content

Commit 5001d1d

Browse files
authored
Update Dockerfile
Signed-off-by: Zoey <[email protected]>
1 parent 4b60f6a commit 5001d1d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Dockerfile

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
# syntax=docker/dockerfile:labs
2-
FROM python:3.13.0-alpine3.20
2+
FROM python:3.13.0-alpine3.20 AS pip
33
ENV PYTHONUNBUFFERED=1
4-
COPY --from=zoeyvid/curl-quic:419 /usr/local/bin/curl /usr/local/bin/curl
54
COPY requirements.txt /tmp/requirements.txt
5+
RUN apk upgrade --no-cache -a && \
6+
apk add --no-cache ca-certificates build-base libffi-dev && \
7+
pip install --no-cache-dir -r /tmp/requirements.txt
68

9+
FROM python:3.13.0-alpine3.20
10+
ENV PYTHONUNBUFFERED=1
11+
COPY --from=zoeyvid/curl-quic:419 /usr/local/bin/curl /usr/local/bin/curl
12+
COPY --from=pip /usr/local /usr/local
713
RUN apk upgrade --no-cache -a && \
8-
apk add --no-cache ca-certificates tzdata tini jq build-base libffi-dev && \
9-
pip install --no-cache-dir -r /tmp/requirements.txt && \
10-
apk del --no-cache build-base libffi-dev && \
14+
apk add --no-cache ca-certificates tzdata tini jq && \
1115
mkdir -vp /etc/parsedmarc && \
1216
chown -R nobody:nobody /tmp /etc/parsedmarc
13-
1417
COPY start.sh /usr/local/bin/start.sh
1518
COPY config.ini /tmp/config.ini
16-
1719
USER nobody
1820
ENTRYPOINT ["tini", "--", "start.sh"]

0 commit comments

Comments
 (0)