forked from alexei-led/pumba
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (25 loc) · 1.3 KB
/
Dockerfile
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
FROM alpine:3.4
MAINTAINER Alexei Ledenev <alexei.led@gmail.com>
LABEL com.gaiaadm.pumba=true
RUN addgroup pumba && adduser -s /bin/bash -D -G pumba pumba
ENV GOSU_VERSION 1.10
RUN apk add --no-cache --virtual .gosu-deps dpkg gnupg openssl ca-certificates wget \
&& arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$arch" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$arch.asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& if [ ! -z "$http_proxy" ]; then KEYSERVER_OPTS="--keyserver-options http-proxy=$http_proxy"; fi \
&& gpg $KEYSERVER_OPTS --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu \
&& gosu nobody true \
&& apk del .gosu-deps
COPY .dist/pumba /usr/bin/pumba
COPY docker_entrypoint.sh /
RUN chmod +x /docker_entrypoint.sh
ENTRYPOINT ["/docker_entrypoint.sh"]
CMD ["pumba", "--help"]
ARG VCS_REF
LABEL org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/gaia-adm/pumba"