-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.base
More file actions
22 lines (17 loc) · 820 Bytes
/
Dockerfile.base
File metadata and controls
22 lines (17 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:3.4
RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' > /etc/nsswitch.conf \
&& echo '@testing http://dl-4.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
&& mkdir /data \
&& addgroup -S consul \
&& adduser -h /var/consul -s /sbin/nologin -G consul -S -D consul \
&& chown consul:consul /data
ENV GOMAXPROCS 2
ENV CHECKPOINT_DISABLE=1
ENV CONSUL_VERSION 0.6.4
RUN apk --update add wget ca-certificates runit@testing \
&& wget --quiet --output-document=/tmp/consul.zip https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip \
&& unzip /tmp/consul.zip -d /usr/sbin \
&& apk --purge del wget \
&& rm -f /var/cache/apk/* /tmp/consul.zip
COPY service /etc/service/
CMD ["runsvdir", "/etc/service"]