15 lines
No EOL
231 B
Docker
15 lines
No EOL
231 B
Docker
FROM python:slim
|
|
|
|
RUN mkdir /app
|
|
RUN mkdir /data
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
RUN apt update -y
|
|
RUN apt install -y cron
|
|
COPY crontab .
|
|
RUN crontab crontab
|
|
|
|
COPY main.py . |