-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.x64
38 lines (29 loc) · 1.04 KB
/
Dockerfile.x64
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
38
#
# Notifier docker image
#
# http://github.com/tenstartups/notifier-docker
#
FROM tenstartups/alpine:latest
LABEL maintainer="Marc Lennox <[email protected]>"
# Set environment variables.
ENV \
TERM=xterm-color
# Install base packages.
RUN \
apk --update add bash build-base busybox-extras ca-certificates coreutils curl nano procps rsync ruby ruby-dev ruby-json tar wget && \
update-ca-certificates && \
rm -rf /var/cache/apk/*
# Install ruby gems.
RUN gem install colorize hipchat rest-client slack-notifier --no-document
# Add files to the container.
COPY entrypoint.sh /docker-entrypoint
ADD script /tmp/script
# Copy scripts and configuration into place.
RUN \
find /tmp/script -type f -name '*.sh' | while read f; do cp -v "$f" "/usr/local/bin/`basename ${f%.sh}`"; done && \
find /tmp/script -type f -name '*.rb' | while read f; do cp -v "$f" "/usr/local/bin/`basename ${f%.rb}`"; done && \
rm -rf /tmp/script
# Define entrypoint script.
ENTRYPOINT ["/docker-entrypoint"]
# Define default command.
CMD ["/usr/local/bin/notify"]