mirror of
https://github.com/serega404/MetricAliexpressExchangeRate.git
synced 2025-04-21 06:10:44 +03:00
17 lines
335 B
Docker
17 lines
335 B
Docker
FROM python:3.11.2-alpine3.17
|
|
|
|
LABEL Maintainer="serega404"
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt requirements.txt
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
# Setting up crontab
|
|
COPY crontab /tmp/crontab
|
|
RUN cat /tmp/crontab > /etc/crontabs/root
|
|
|
|
COPY main.py main.py
|
|
|
|
# run crond as main process of container
|
|
CMD ["crond", "-f", "-l", "2"] |