From 1592e333be61ed600379d9a59ed68329d269f5f5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 30 Mar 2021 02:21:21 +0300 Subject: docker: enable scheduled runs via crond --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index a99e1fe..98aab38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,15 @@ FROM alpine:3.10 -RUN apk add --no-cache git openssh-client python3 +RUN apk add --no-cache bash git openssh-client python3 tini ARG ssh_sock_dir=/var/run/cgitize ARG ssh_sock_path="$ssh_sock_dir/ssh-agent.sock" ENV SSH_AUTH_SOCK "$ssh_sock_path" +COPY ["docker/entrypoint.sh", "/"] COPY ["cgitize/", "/usr/src/cgitize/"] WORKDIR /usr/src +ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] CMD ["python3", "-m", "cgitize.main"] -- cgit v1.2.3