Switch base to alpine
All checks were successful
Build Docker Image / build (push) Successful in 30s
All checks were successful
Build Docker Image / build (push) Successful in 30s
This commit is contained in:
@@ -1,12 +1,10 @@
|
|||||||
FROM python:alpine as base
|
FROM python:alpine as base
|
||||||
|
|
||||||
RUN apt-get update && apt-get install cron -y
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY autopkg /etc/cron.d/
|
|
||||||
|
|
||||||
|
RUN crontab autopkg.cron
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
CMD cron && python main.py
|
CMD crond -f && python main.py
|
||||||
|
|||||||
Reference in New Issue
Block a user