Skip to content

Commit

Permalink
Added cron into docker
Browse files Browse the repository at this point in the history
  • Loading branch information
cromefire authored Aug 7, 2024
1 parent 964f3f2 commit a0bbed7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@ ENV HOME="/config"
EXPOSE 9443

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y libmojolicious-perl curl \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cron libmojolicious-perl curl \
&& rm -rf /var/cache/apt/archives /var/lib/apt/lists/*

RUN curl -sSL https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz -o /tmp/s6-overlay-noarch.tar.xz
&& tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
&& curl -sSL https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp/s6-overlay-x86_64.tar.xz
&& tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
&& rm /tmp/s6-overlay-noarch.tar.xz /tmp/s6-overlay-x86_64.tar.xz

COPY ./services.d /etc/services.d

ENTRYPOINT ["/init"]

COPY acmeproxy.pl /app/acmeproxy.pl

CMD [ "perl", "/app/acmeproxy.pl" ]
3 changes: 3 additions & 0 deletions docker/services.d/cron/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv sh

exec cron -f

0 comments on commit a0bbed7

Please sign in to comment.