This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user