-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 937 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 937 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.3
# install common packages
RUN apk add --update-cache curl bash openssl sudo && rm -rf /var/cache/apk/*
# install etcdctl and confd
RUN apk add --update-cache curl tar \
&& curl -sSL https://github.com/coreos/etcd/releases/download/v2.2.1/etcd-v2.2.1-linux-amd64.tar.gz \
| tar -vxz -C /usr/local/bin --strip=1 etcd-v2.2.1-linux-amd64/etcdctl \
&& chown root:root /usr/local/bin/etcdctl \
&& curl -sSL -o /usr/local/bin/confd https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64 \
&& chmod +x /usr/local/bin/confd \
&& apk del --purge curl tar \
&& rm -rf /var/cache/apk/*
# define execution environment
CMD ["/app/bin/boot"]
EXPOSE 8000
# define work environment
WORKDIR /app
ADD build.sh /app/tmp/build.sh
ADD requirements.txt /app/requirements.txt
RUN DOCKER_BUILD=true /app/tmp/build.sh && rm -rf /app/*
ADD . /app
ENV DEIS_RELEASE 2.0.0-dev