Update Dockerfile
This commit is contained in:
parent
fdd7bc2d4c
commit
b123e9973b
@ -2,11 +2,11 @@ FROM python:3.10-alpine
|
|||||||
|
|
||||||
WORKDIR /srv/flask_app
|
WORKDIR /srv/flask_app
|
||||||
|
|
||||||
COPY requirements.txt /srv/flask_app/
|
COPY /telegram_bot/requirements.txt /srv/flask_app/
|
||||||
|
|
||||||
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
|
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
|
||||||
|
|
||||||
COPY .. /srv/flask_app
|
COPY ../telegram_bot /srv/flask_app
|
||||||
RUN chmod +x ./deploy/start.sh
|
RUN chmod +x ./deploy/start.sh
|
||||||
RUN chmod +x ./deploy/healthcheck.sh
|
RUN chmod +x ./deploy/healthcheck.sh
|
||||||
|
|
||||||
|
@ -3,12 +3,12 @@ FROM python:3.10-alpine
|
|||||||
WORKDIR /srv/flask_app
|
WORKDIR /srv/flask_app
|
||||||
RUN apk add nginx build-base libffi-dev curl uwsgi
|
RUN apk add nginx build-base libffi-dev curl uwsgi
|
||||||
|
|
||||||
COPY requirements.txt /srv/flask_app/
|
COPY webservice/requirements.txt /srv/flask_app/
|
||||||
|
|
||||||
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
|
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
|
||||||
|
|
||||||
COPY .. /srv/flask_app
|
COPY ../webservice/ /srv/flask_app
|
||||||
COPY deploy/nginx.conf /etc/nginx
|
COPY ../webservice/deploy/nginx.conf /etc/nginx
|
||||||
RUN chmod +x ./deploy/start.sh
|
RUN chmod +x ./deploy/start.sh
|
||||||
RUN chmod +x ./deploy/healthcheck.sh
|
RUN chmod +x ./deploy/healthcheck.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user