TelegramAktienBot/api/Dockerfile
H4CK3R-01 ecc532b752 Extracted frontend from webservice to new directory
Updated directory structure
Updated .gitignore
2022-03-17 17:11:00 +01:00

20 lines
468 B
Docker

FROM python:3.10-alpine
WORKDIR /srv/flask_app
RUN apk add nginx build-base libffi-dev curl uwsgi
COPY api/requirements.txt /srv/flask_app/
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
COPY api /srv/flask_app
COPY api/deploy/nginx.conf /etc/nginx
RUN chmod +x ./deploy/start.sh
RUN chmod +x ./deploy/healthcheck.sh
HEALTHCHECK --interval=15s --timeout=2s CMD ["./deploy/healthcheck.sh"]
EXPOSE 80
CMD ["./deploy/start.sh"]