kopia lustrzana https://github.com/dgtlmoon/changedetection.io
19 wiersze
371 B
Docker
19 wiersze
371 B
Docker
FROM python:3.8-slim
|
|
COPY requirements.txt /tmp/requirements.txt
|
|
RUN pip3 install -r /tmp/requirements.txt
|
|
|
|
RUN mkdir /app
|
|
COPY backend/ /app
|
|
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" ]
|
|
|
|
|
|
|