snip/Dockerfile
Armin Friedl 7ecab10a48
All checks were successful
continuous-integration/drone/push Build is passing
Working shortener with some style
2020-10-30 00:59:31 +01:00

15 lines
245 B
Docker

FROM python:3.8-alpine
RUN apk update && apk add su-exec \
&& pip3 install pipenv
COPY . /app
WORKDIR /app
RUN pipenv install
ENV FLASK_APP=snip
ENV FLASK_ENV=production
EXPOSE 5000
CMD ["pipenv", "run", "flask", "run", "--host=0.0.0.0"]