fishbowl/Dockerfile

26 lines
489 B
Docker

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
RUN mkdir /data
VOLUME /data
ENV DB_URI sqlite:////data/fishbowl.db
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
RUN chown -R www-data:www-data /data
USER www-data
CMD ["python", "/app/fishbowl/app.py"]