File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:labs
2
- FROM python:3.13.0-alpine3.20
2
+ FROM python:3.13.0-alpine3.20 AS pip
3
3
ENV PYTHONUNBUFFERED=1
4
- COPY --from=zoeyvid/curl-quic:419 /usr/local/bin/curl /usr/local/bin/curl
5
4
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
6
8
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
7
13
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 && \
11
15
mkdir -vp /etc/parsedmarc && \
12
16
chown -R nobody:nobody /tmp /etc/parsedmarc
13
-
14
17
COPY start.sh /usr/local/bin/start.sh
15
18
COPY config.ini /tmp/config.ini
16
-
17
19
USER nobody
18
20
ENTRYPOINT ["tini" , "--" , "start.sh" ]
You can’t perform that action at this time.
0 commit comments