Added Dockerfile, deploy settings and pipeline config
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM python:3.10-alpine
|
||||
|
||||
WORKDIR /srv/flask_app
|
||||
RUN apk add nginx build-base libffi-dev curl
|
||||
|
||||
COPY requirements.txt /srv/flask_app/
|
||||
|
||||
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
|
||||
|
||||
COPY . /srv/flask_app
|
||||
COPY 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"]
|
Reference in New Issue
Block a user