Skip to content
Permalink
Browse files

dockerize

  • Loading branch information...
maya2250 committed Apr 8, 2019
1 parent 25e4d97 commit 92c72b45380aa0abd40ace689207ccde58707b4b
Showing with 21 additions and 0 deletions.
  1. +20 −0 Dockerfile
  2. +1 −0 crontab
@@ -0,0 +1,20 @@
FROM python:3.7.3-slim-stretch

ENV TZ=Asia/Tokyo

WORKDIR /opt/app
ADD . .
ADD crontab /var/spool/cron/crontabs/root

ARG BUILD_DEPENDENCIES="gcc libffi-dev libssl-dev libxml2-dev libxslt1-dev python3-lxml python-lxml zlib1g-dev"

RUN set -x && \
apt update && \
apt install -y ${BUILD_DEPENDENCIES} && \
pip install -r requirements.txt

ARG APP_DEPENDENCIES="busybox-static"
RUN set -x && \
apt install -y ${APP_DEPENDENCIES}

CMD ["busybox", "crond", "-f", "-L", "/dev/stderr"]
@@ -0,0 +1 @@
0 6,8,10,12,14,16,18,20,22 * * * python /opt/app/main.py

0 comments on commit 92c72b4

Please sign in to comment.
You can’t perform that action at this time.