feat: Add Dockerfile

This commit is contained in:
gd
2022-01-05 13:12:51 +03:00
parent 312efc9047
commit dd570f7f93
2 changed files with 46 additions and 1 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM python:latest
ADD . /opt/imgs
RUN mkdir -p /opt/imgs/uploads
WORKDIR /opt/imgs
RUN pip install --upgrade pip && pip install --requirement requirements.txt
EXPOSE 5000
CMD gunicorn imgs:app --bind :5000