morss/Dockerfile

16 lines
342 B
Docker
Raw Normal View History

2020-04-18 15:04:44 +00:00
FROM alpine:latest
2020-04-19 11:25:53 +00:00
ADD . /app
RUN set -ex; \
2021-12-11 17:50:28 +00:00
apk add --no-cache --virtual .run-deps python3 py3-lxml py3-setproctitle; \
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
2020-04-18 15:04:44 +00:00
2021-10-19 20:20:44 +00:00
USER 1000:1000
ENTRYPOINT ["/bin/sh", "/app/docker-entry.sh"]
CMD ["run"]