경로 이동

This commit is contained in:
2019-09-15 14:32:31 +00:00
parent bfb489f007
commit 2b69312463
16 changed files with 4 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM python:3-alpine
#alpine + python3 + cron(from alpine)
#only cron this
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
set -e
echo '* * * * * python3 /var/www/html/sam/src/run_daemon.py' | crontab - && crond -f -L /dev/stdout