Files
workhive-caldav-sync/Dockerfile
LockeShor a519e46482
All checks were successful
Docker Image / build (push) Successful in 2m29s
work yay
2026-06-08 22:34:54 -04:00

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"]