Dockerfile: reduce # of steps & image size
continuous-integration/drone/push Build was killed Details

master
pictuga 2021-12-11 18:28:35 +01:00
parent b2600152ea
commit 580565da77
1 changed files with 7 additions and 3 deletions

View File

@ -1,9 +1,13 @@
FROM alpine:latest FROM alpine:latest
RUN apk add --no-cache python3 py3-pip py3-wheel py3-lxml
ADD . /app ADD . /app
RUN pip3 install --no-cache-dir /app[full]
RUN set -ex; \
apk add --no-cache --virtual .run-deps python3 py3-lxml; \
apk add --no-cache --virtual .build-deps py3-pip py3-wheel; \
pip3 install --no-cache-dir /app[full]; \
apk del .build-deps; \
rm -r /app
USER 1000:1000 USER 1000:1000