fishbowl/Dockerfile

25 lines
479 B
Docker
Raw Normal View History

2020-04-05 17:48:11 +00:00
FROM python:3
RUN mkdir -p /app
WORKDIR /app
# Install service runtime requirements
COPY ./requirements-minimal.txt /app/requirements.txt
RUN pip install -r ./requirements.txt
EXPOSE 3000
# Install service as package for alembic
COPY ./fishbowl /app/fishbowl
# Own app dir and drop root
RUN chown -R www-data:www-data /app
USER www-data
2020-04-05 18:34:53 +00:00
# Make data dir
RUN mkdir /app/data
VOLUME /app/data
ENV DB_URI sqlite:////app/data/fishbowl.db
2020-04-05 17:48:11 +00:00
CMD ["python", "/app/fishbowl/app.py"]