diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-30 02:21:21 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-30 09:40:13 +0300 |
commit | 1592e333be61ed600379d9a59ed68329d269f5f5 (patch) | |
tree | f4c2104e99963045eea83120a67a12352f19489a /Dockerfile | |
parent | examples: mention access tokens (diff) | |
download | cgitize-1592e333be61ed600379d9a59ed68329d269f5f5.tar.gz cgitize-1592e333be61ed600379d9a59ed68329d269f5f5.zip |
docker: enable scheduled runs via crond
Diffstat (limited to '')
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"] |