ssh git이 가능하도록 변경, cron 버그 수정, fpm timezone 수정

This commit is contained in:
2019-09-15 13:30:12 +00:00
parent 0d49729c63
commit af6353105b
12 changed files with 121 additions and 64 deletions
+3 -3
View File
@@ -2,6 +2,6 @@ FROM python:3-alpine
#alpine + python3 + cron(from alpine)
#only cron this
RUN echo '* * * * * python3 /var/www/html/sam/src/run_daemon.py' > /etc/crontabs/root
CMD ["crond", "-l 2", "-f"]
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