Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
Zoey2936 authored Oct 11, 2024
1 parent 4b60f6a commit 5001d1d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# syntax=docker/dockerfile:labs
FROM python:3.13.0-alpine3.20
FROM python:3.13.0-alpine3.20 AS pip
ENV PYTHONUNBUFFERED=1
COPY --from=zoeyvid/curl-quic:419 /usr/local/bin/curl /usr/local/bin/curl
COPY requirements.txt /tmp/requirements.txt
RUN apk upgrade --no-cache -a && \
apk add --no-cache ca-certificates build-base libffi-dev && \
pip install --no-cache-dir -r /tmp/requirements.txt

FROM python:3.13.0-alpine3.20
ENV PYTHONUNBUFFERED=1
COPY --from=zoeyvid/curl-quic:419 /usr/local/bin/curl /usr/local/bin/curl
COPY --from=pip /usr/local /usr/local
RUN apk upgrade --no-cache -a && \
apk add --no-cache ca-certificates tzdata tini jq build-base libffi-dev && \
pip install --no-cache-dir -r /tmp/requirements.txt && \
apk del --no-cache build-base libffi-dev && \
apk add --no-cache ca-certificates tzdata tini jq && \
mkdir -vp /etc/parsedmarc && \
chown -R nobody:nobody /tmp /etc/parsedmarc

COPY start.sh /usr/local/bin/start.sh
COPY config.ini /tmp/config.ini

USER nobody
ENTRYPOINT ["tini", "--", "start.sh"]

0 comments on commit 5001d1d

Please sign in to comment.