mirror of
https://github.com/serega404/MetricAliexpressExchangeRate.git
synced 2025-08-28 08:34:39 +03:00
Update docker settings
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,18 +1,17 @@
|
||||
FROM python:3.11.1-alpine3.17
|
||||
FROM python:3.11.2-alpine3.17
|
||||
|
||||
LABEL Maintainer="serega404"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./requirements.txt requirements.txt
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
COPY crontab /etc/cron.d/crontab
|
||||
RUN chmod 0644 /etc/cron.d/crontab
|
||||
# Setting up crontab
|
||||
COPY crontab /tmp/crontab
|
||||
RUN cat /tmp/crontab > /etc/crontabs/root
|
||||
|
||||
COPY main.py main.py
|
||||
|
||||
RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||
|
||||
# run crond as main process of container
|
||||
CMD ["/usr/sbin/crond", "-f"]
|
||||
CMD ["crond", "-f", "-l", "2"]
|
Reference in New Issue
Block a user