-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
26 lines (22 loc) · 1.45 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
FROM ubuntu:14.04.3
# Last build date - this can be updated whenever there are security updates so
# that everything is rebuilt
ENV security_updates_as_of 2015-08-14
# Install security updates and required packages
RUN apt-get -qy update && \
apt-get -y install apt-transport-https software-properties-common wget zip && \
wget -qO /tmp/terraform.zip https://dl.bintray.com/mitchellh/terraform/terraform_0.6.3_linux_amd64.zip && \
cd /tmp && unzip terraform.zip && rm terraform.zip && mv terraform terraform-provider-aws terraform-provider-template terraform-provisioner-local-exec terraform-provisioner-remote-exec /usr/local/bin/ && rm * && \
add-apt-repository -y "deb https://clusterhq-archive.s3.amazonaws.com/ubuntu/$(lsb_release --release --short)/\$(ARCH) /" && \
apt-get -qy update && \
apt-get -qy upgrade && \
apt-get -y --force-yes install clusterhq-flocker-cli && \
apt-get remove --purge -y $(apt-mark showauto) python3.4 && \
apt-get -y install apt-transport-https software-properties-common && \
apt-get -y --force-yes install clusterhq-flocker-cli && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD . /app
RUN cd /app && /opt/flocker/bin/pip install --no-cache-dir . && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /app
ENV PATH /opt/flocker/bin:$PATH
WORKDIR /pwd