zetikettes/Dockerfile

16 lines
505 B
Docker
Raw Permalink Normal View History

2022-07-12 10:04:38 +00:00
FROM alpine
RUN apk --no-cache add python3 inkscape bash imagemagick ttf-opensans
2024-09-03 19:26:28 +00:00
RUN apk --no-cache add py3-pip && pip3 install --break-system-packages django tzdata gunicorn
2022-07-12 10:04:38 +00:00
2023-06-28 21:42:46 +00:00
ADD backend /root/zetikettes
2022-07-12 10:04:38 +00:00
RUN mkdir -p /usr/share/fonts/TTF \
&& cp /root/zetikettes/fonts/*.ttf /usr/share/fonts/TTF/ \
&& fc-cache -fv
2022-07-12 10:04:38 +00:00
2023-07-03 14:56:58 +00:00
2022-07-12 10:04:38 +00:00
# the script will look for templates in /data
2023-07-03 17:56:32 +00:00
WORKDIR /root/zetikettes/zetikettes
2024-09-03 19:26:28 +00:00
CMD /usr/bin/gunicorn zetikettes.wsgi -b 0.0.0.0:8000 --timeout 600 --forwarded-allow-ips="*"