2022-03-17 21:42:06 +03:00
|
|
|
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
|
2022-03-17 21:42:06 +03:00
|
|
|
RUN pip install gunicorn
|
2022-01-05 13:12:51 +03:00
|
|
|
EXPOSE 5000
|
|
|
|
CMD gunicorn imgs:app --bind :5000
|