snip/Dockerfile
Armin Friedl 1782a97bcb
All checks were successful
continuous-integration/drone/push Build is passing
Make docker default configuration production ready
2020-11-08 20:16:36 +01:00

18 lines
316 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
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", "python", "-m", "snip"]