dockerise

This commit is contained in:
2021-12-05 00:17:54 +00:00
parent 3856d5fa84
commit e715d07bf1
5 changed files with 71 additions and 5 deletions

View File

@ -1,5 +1,5 @@
FROM python:3.10-alpine
WORKDIR /app
FROM python:3.10-slim
WORKDIR /ref-test
COPY . .
RUN pip install -r requirements.txt
CMD [ "gunicorn", "-b", "0.0.0.0:5000", "app:app" ]
RUN pip install --upgrade pip && pip install -r requirements.txt
CMD [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "8", "main:app" ]