snip/Dockerfile
Armin Friedl 557ae95406
All checks were successful
continuous-integration/drone/push Build is passing
Use https as default scheme, run behind gunicorn in container
2020-11-09 05:37:17 +01:00

19 lines
362 B
Docker

FROM python:3.8-alpine
RUN apk update && apk add su-exec \
&& pip3 install pipenv
RUN mkdir -p /data
COPY . /app
WORKDIR /app
RUN pipenv install
RUN pipenv install gunicorn
ENV SNIP_DATABASE="sqlite"
ENV SNIP_DATABASE_URI="sqlite:////data/snip.db"
ENV SNIP_FLASK_HOST="0.0.0.0"
EXPOSE 5000
CMD ["pipenv", "run", "gunicorn", "-b0.0.0.0:5000", "snip:app"]