Dockerfile: reduce # of steps & image size

This commit is contained in:
pictuga 2021-12-11 18:28:35 +01:00
parent b2600152ea
commit 580565da77

@ -1,9 +1,13 @@
FROM alpine:latest
RUN apk add --no-cache python3 py3-pip py3-wheel py3-lxml
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