diff --git a/Dockerfile b/Dockerfile index b431138..91142e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,10 @@ FROM python:alpine as base -RUN apt-get update && apt-get install cron -y - WORKDIR /app COPY . . -COPY autopkg /etc/cron.d/ +RUN crontab autopkg.cron RUN pip install --no-cache-dir -r requirements.txt -CMD cron && python main.py +CMD crond -f && python main.py diff --git a/autopkg b/autopkg.cron similarity index 100% rename from autopkg rename to autopkg.cron