2020-10-26 16:39:44 +00:00
|
|
|
FROM python:3.8-alpine
|
|
|
|
|
|
|
|
RUN apk update && apk add su-exec \
|
|
|
|
&& pip3 install pipenv
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2020-10-29 23:59:31 +00:00
|
|
|
RUN pipenv install
|
|
|
|
|
2020-10-26 16:39:44 +00:00
|
|
|
ENV FLASK_APP=snip
|
|
|
|
ENV FLASK_ENV=production
|
|
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD ["pipenv", "run", "flask", "run", "--host=0.0.0.0"]
|