mirror of
https://github.com/serega404/MetricAliexpressExchangeRate.git
synced 2026-10-11 22:29:28 +03:00
Optimize Dokerfile
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -4,13 +4,14 @@ LABEL Maintainer="serega404"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY main.py main.py
|
||||
COPY ./requirements.txt requirements.txt
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
COPY crontab /etc/cron.d/crontab
|
||||
RUN chmod 0644 /etc/cron.d/crontab
|
||||
|
||||
COPY main.py main.py
|
||||
|
||||
RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||
|
||||
# run crond as main process of container
|
||||
|
||||
Reference in new issue
Block a user