forked from alseambusher/crontab-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 809 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (26 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# docker run -d -p 8000:8000 alseambusher/crontab-ui
FROM node:22-alpine AS build
WORKDIR /crontab-ui
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
FROM node:22-alpine
ENV CRON_PATH=/etc/crontabs
RUN touch $CRON_PATH/root && chmod +x $CRON_PATH/root
RUN apk --no-cache add \
curl \
supervisor \
tini \
tzdata
WORKDIR /crontab-ui
LABEL maintainer="@alseambusher"
LABEL description="Crontab-UI docker"
COPY --from=build /crontab-ui/node_modules ./node_modules
COPY . .
ENV HOST=0.0.0.0
ENV PORT=8000
ENV CRON_IN_DOCKER=true
EXPOSE $PORT
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD curl -f http://localhost:${PORT}/ || exit 1
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["supervisord", "-c", "/crontab-ui/supervisord.conf"]