changedetection.io/Dockerfile

25 wiersze
524 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
# Attempt to store the triggered commit
2021-02-02 18:11:38 +00:00
ARG SOURCE_COMMIT
ARG SOURCE_BRANCH
RUN echo "commit: $SOURCE_COMMIT branch: $SOURCE_BRANCH" >/source.txt
RUN [ ! -d "/datastore" ] && mkdir /datastore
2021-02-12 18:43:05 +00:00
CMD [ "python", "./backend.py" , "-d", "/datastore"]
2021-01-27 19:51:55 +00:00