Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
ptruman authored Sep 8, 2020
1 parent e040630 commit 2012644
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dockerfile for CWATCH
FROM alpine
MAINTAINER [email protected]

# Set base labels
LABEL CWATCH=V4
LABEL [email protected]

# Set environment

# Grab pre-requisites
RUN apk update \
apk upgrade
apk add docker msmtp curl jq \
curl https://raw.githubusercontent.com/ptruman/cwatch/master/cwatch.sh > /usr/sbin/cwatch.sh \
chmod a+rx /usr/sbin/cwatch.sh \
touch /var/log/cwatch \
echo "*/2 * * * * /usr/sbin/cwatch.sh > /var/log/cwatch" >> /etc/crontabs/root

CMD ["crond", "-f"]

0 comments on commit 2012644

Please sign in to comment.