Skip to content

Commit a0f3437

Browse files
author
Matthew Fisher
committed
refactor(controller): optimize docker build layers
1 parent cd6a38e commit a0f3437

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

controller/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ RUN pip install boto==2.23.0 \
3434
# install openssh-client for temporary fleetctl wrapper
3535
RUN apt-get install -yq openssh-client
3636

37+
# install latest etcdctl including no-sync options
38+
RUN wget -q https://s3-us-west-2.amazonaws.com/deis/etcdctl.no-sync -O /usr/local/bin/etcdctl
39+
RUN chmod +x /usr/local/bin/etcdctl
40+
3741
# clone the project into /app
3842
ADD . /app
3943

@@ -54,10 +58,6 @@ RUN mkdir -p /templates && chown -R deis:deis /templates
5458
# create directory for logs
5559
RUN mkdir -p /var/log/deis && chown -R deis:deis /var/log/deis
5660

57-
# install latest etcdctl including no-sync options
58-
RUN wget -q https://s3-us-west-2.amazonaws.com/deis/etcdctl.no-sync -O /usr/local/bin/etcdctl
59-
RUN chmod +x /usr/local/bin/etcdctl
60-
6161
# define the execution environment
6262
WORKDIR /app
6363
CMD ["/app/bin/boot"]

0 commit comments

Comments
 (0)