changedetection.io/Dockerfile

18 wiersze
355 B
Docker
Czysty Zwykły widok Historia

2021-01-28 13:45:30 +00:00
FROM python:3.8-slim
2021-01-27 19:51:55 +00:00
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt
2021-01-29 11:40:51 +00:00
COPY backend /app
2021-01-27 19:51:55 +00:00
WORKDIR /app
# https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
ENV PYTHONUNBUFFERED=1
RUN [ ! -d "/datastore" ] && mkdir /datastore
CMD [ "python", "./backend.py" ]
2021-01-27 19:51:55 +00:00