Compare commits

..

2 Commits

Author SHA1 Message Date
ge
dbdbf2a3d9 feat: Remove WSGI server from requirements 2022-03-17 21:42:47 +03:00
ge
3a8bef4ddc feat: Reduce image size from ~930M to ~85M 2022-03-17 21:42:06 +03:00
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -1,2 +1 @@
bottle==0.12.19 bottle==0.12.19
gunicorn==20.1.0