Skip to content

Commit

Permalink
Merge pull request #150 from bodom0015/apiserver-build
Browse files Browse the repository at this point in the history
Fix (hopefully) intermittent API server builds
  • Loading branch information
craig-willis authored Oct 11, 2016
2 parents 7f3e21d + ef301dc commit 1d055f0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions apiserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MAINTAINER [email protected]


COPY . /go/src/github.com/ndslabs/apiserver
COPY templates entrypoint.sh /

RUN apt-get update -y -qq && \
apt-get install -y -qq binutils curl gcc git vim && \
Expand All @@ -17,14 +18,10 @@ RUN apt-get update -y -qq && \
./build.sh docker && \
mv build/bin/apiserver-linux-amd64 /apiserver && \
mkdir /ndslabsctl/ && mv build/bin/ndslabsctl* /ndslabsctl && \
rm -rf /golang && \
rm -rf /go && \
apt-get remove --purge gcc -y -qq && \
apt-get autoremove -y -qq


COPY ./entrypoint.sh /
COPY ./templates /templates
apt-get autoremove -y -qq && \
apt-get -y clean all &&\
rm -rf /var/cache/apk/* /go /golang /tmp/*

VOLUME /volumes

Expand Down

0 comments on commit 1d055f0

Please sign in to comment.