github.com/dustinrc/deis@v1.10.1-0.20150917223407-0894a5fb979e/controller/Dockerfile (about) 1 FROM alpine:3.1 2 3 # install common packages 4 RUN apk add --update-cache curl bash sudo && rm -rf /var/cache/apk/* 5 6 # install etcdctl 7 RUN curl -sSL -o /usr/local/bin/etcdctl https://s3-us-west-2.amazonaws.com/get-deis/etcdctl-v0.4.9 \ 8 && chmod +x /usr/local/bin/etcdctl 9 10 # install confd 11 RUN curl -sSL -o /usr/local/bin/confd https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64 \ 12 && chmod +x /usr/local/bin/confd 13 14 # define execution environment 15 CMD ["/app/bin/boot"] 16 EXPOSE 8000 17 18 # define work environment 19 WORKDIR /app 20 21 ADD build.sh /app/tmp/build.sh 22 23 ADD requirements.txt /app/requirements.txt 24 25 RUN DOCKER_BUILD=true /app/tmp/build.sh 26 27 ADD . /app 28 29 # Create static resources 30 RUN /app/manage.py collectstatic --settings=deis.settings --noinput 31 32 ENV DEIS_RELEASE 1.11.0-dev