forked from deis/deis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (22 loc) · 855 Bytes
/
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
34
FROM ubuntu-debootstrap:14.04
ENV DEBIAN_FRONTEND noninteractive
# install common packages
RUN apt-get update && apt-get install -y curl net-tools sudo
# install etcdctl
RUN curl -sSL -o /usr/local/bin/etcdctl https://s3-us-west-2.amazonaws.com/opdemand/etcdctl-v0.4.6 \
&& chmod +x /usr/local/bin/etcdctl
# install confd
RUN curl -sSL -o /usr/local/bin/confd https://github.com/kelseyhightower/confd/releases/download/v0.9.0/confd-0.9.0-linux-amd64 \
&& chmod +x /usr/local/bin/confd
# 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
ADD . /app
# Create static resources
RUN /app/manage.py collectstatic --settings=deis.settings --noinput
ENV DEIS_RELEASE 1.6.0-dev