snip/Dockerfile
Armin Friedl 75208ac43d
All checks were successful
continuous-integration/drone/push Build is passing
Remove flask host from docker
Snip runs behind gunicorn now in the docker container
2020-11-09 06:59:17 +01:00

18 lines
332 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"
EXPOSE 5000
CMD ["pipenv", "run", "gunicorn", "-b0.0.0.0:5000", "snip:app"]