dcron은 좀;;
This commit is contained in:
parent
11f24b1b05
commit
588a412704
1 changed files with 6 additions and 4 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -20,9 +20,11 @@ RUN mkdir -p /code/app/temp
|
||||||
RUN bun install
|
RUN bun install
|
||||||
|
|
||||||
# Cron job
|
# Cron job
|
||||||
RUN apk add --no-cache dcron bash
|
RUN apk add --no-cache curl
|
||||||
|
RUN curl -OL /code/app/supercronic https://github.com/aptible/supercronic/releases/latest/download/supercronic-linux-amd64 \
|
||||||
|
&& chmod +x /code/app/supercronic
|
||||||
|
|
||||||
# Copy the cron job file
|
COPY cron /code/app/cron
|
||||||
COPY cron /etc/crontabs/root
|
RUN chmod +x /code/app/cron
|
||||||
|
|
||||||
CMD ["crond", "-f"]
|
CMD ["/code/app/supercronic", "/code/app/cron"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue