Now deployable

This commit is contained in:
2023-07-03 19:56:32 +02:00
parent 2395bc215d
commit 0d164a1f31
2 changed files with 9 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
FROM alpine
RUN apk --no-cache add python3 inkscape bash imagemagick ttf-opensans
RUN apk --no-cache add py3-pip && pip3 install django tzdata
RUN apk --no-cache add py3-pip && pip3 install django tzdata gunicorn
ADD backend /root/zetikettes
@@ -11,5 +11,5 @@ RUN mkdir -p /usr/share/fonts/TTF \
# the script will look for templates in /data
WORKDIR /root/zetikettes
CMD /usr/bin/python3 zetikettes/manage.py runserver 0.0.0.0:8000
WORKDIR /root/zetikettes/zetikettes
CMD /usr/bin/gunicorn zetikettes.wsgi -b 0.0.0.0:8000 --timeout 600