21 lines
444 B
Docker
21 lines
444 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# install dependencies
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# copy app
|
|
COPY . /app
|
|
|
|
# copy run loop helper and make it executable
|
|
COPY run-loop.sh /app/run-loop.sh
|
|
RUN chmod +x /app/run-loop.sh
|
|
|
|
# do not copy any local .env into image; container uses env at runtime
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
# run the loop which executes sync.py once per hour
|
|
CMD ["/app/run-loop.sh"]
|