imgs/Dockerfile

10 lines
274 B
Docker
Raw Permalink Normal View History

FROM alpine:latest
RUN apk update && apk add python3 py3-pip
2022-01-05 13:12:51 +03:00
ADD . /opt/imgs
RUN mkdir -p /opt/imgs/uploads
WORKDIR /opt/imgs
RUN pip install --upgrade pip && pip install --requirement requirements.txt
RUN pip install gunicorn
2022-01-05 13:12:51 +03:00
EXPOSE 5000
CMD gunicorn imgs:app --bind :5000