Armin Friedl
1782a97bcb
All checks were successful
continuous-integration/drone/push Build is passing
18 lines
316 B
Docker
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"]
|