forked from joonty/systemd_mon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 792 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 792 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
FROM alpine:3.11
#podman auto-update integration
LABEL io.containers.autoupdate="image"
MAINTAINER Decaux Nicolas <decauxnico@gmail.com>
ENV BUILD_PACKAGES bash curl-dev ruby-dev build-base iputils git
ENV RUBY_PACKAGES ruby ruby-io-console ruby-bundler
# Update and install all of the required packages.
# At the end, remove the apk cache
RUN apk update && \
apk upgrade && \
apk add $BUILD_PACKAGES && \
apk add $RUBY_PACKAGES && \
rm -rf /var/cache/apk/* && \
mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN bundle install
ENV RUBYLIB=/usr/src/app/lib
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=120s \
CMD ping -w 8 -4 -c 1 8.8.8.8 || exit 1
EXPOSE 9000
CMD ["./bin/systemd_mon", "/systemd_mon/systemd_mon.yml"]