mirror of
https://github.com/serega404/MetricAliexpressExchangeRate.git
synced 2025-04-20 22:00:46 +03:00
Update docker settings
This commit is contained in:
parent
52684a0b7c
commit
65d7c642bf
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"]
|
@ -1,6 +1,6 @@
|
||||
# MetricAliexpressExchangeRate
|
||||
|
||||
[](https://github.com/serega404/MetricAliexpressExchangeRate)
|
||||
[](https://github.com/serega404/MetricAliexpressExchangeRate)
|
||||
|
||||
Экспортер курса Aliexpress и ЦБ РФ
|
||||
|
||||
@ -35,6 +35,7 @@ docker run -d --name MetricAliexpressExchangeRate \
|
||||
|
||||
### Библиотеки
|
||||
|
||||
* [Requests](https://requests.readthedocs.io/en/latest/)
|
||||
* [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/)
|
||||
|
||||
### Лицензия
|
||||
|
Loading…
x
Reference in New Issue
Block a user