bookwyrm/Dockerfile

20 lines
498 B
Docker
Raw Normal View History

2020-03-22 18:21:19 +00:00
FROM python:3
ENV PYTHONUNBUFFERED 1
2020-03-22 21:33:26 +00:00
RUN mkdir /app
RUN mkdir /app/static
RUN mkdir /app/images
2020-03-22 21:33:26 +00:00
WORKDIR /app
COPY requirements.txt /app/
2020-03-22 18:21:19 +00:00
RUN pip install -r requirements.txt
2020-09-17 21:13:44 +00:00
COPY ./bookwyrm /app
COPY ./celerywyrm /app
2020-10-28 20:55:08 +00:00
# crontab
COPY ./db_backup.sh /app
RUN apt-get update && apt-get -y install cron
COPY db-backups-cron /etc/cron.d/db-backups-cron
RUN chmod 0644 /etc/cron.d/db-backups-cron
RUN crontab /etc/cron.d/db-backups-cron
RUN touch /var/log/cron.log
CMD cron && tail -f /var/log/cron.log