-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 811 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (17 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use an official Alpine image as a base
FROM alpine:latest
WORKDIR /app
# Install apps
RUN apk update && apk add --no-cache bash curl docker-cli docker-cli-compose supercronic jq regclient msmtp --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
# Copy the script files into the container
COPY entrypoint.sh /app/entrypoint.sh
COPY dockcheck.sh /app/dockcheck.sh
COPY notify_templates /app/notify_templates
COPY extras /app/extras
COPY addons /app/addons
# Create symlink, give execution rights on the script and set proper permissions
RUN chmod +x /app/dockcheck.sh
RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]
# Run the cron daemon in the foreground and tail the log file to keep the container running
CMD ["supercronic", "-passthrough-logs", "-json", "/app/crontab"]