Skip to content

Instantly share code, notes, and snippets.

@ams0
Created September 30, 2017 22:04
Show Gist options
  • Save ams0/8729cfca4e966d0b860df1760d4a7f43 to your computer and use it in GitHub Desktop.
Save ams0/8729cfca4e966d0b860df1760d4a7f43 to your computer and use it in GitHub Desktop.
multistage acs-engine-light
FROM golang
ENV GOPATH /gopath
ENV PATH "${PATH}:${GOPATH}/bin"
# change Azure to another source if you need
RUN go get -d -v github.com/Azure/acs-engine ; exit 0 # Workaround for issues #1068
WORKDIR /gopath/src/github.com/Azure/acs-engine
#RUN git checkout <branch> if you need to work with a branch
RUN make bootstrap
RUN make build
FROM ubuntu
COPY --from=0 /gopath/src/github.com/Azure/acs-engine/bin/acs-engine /acs-engine
CMD ["/acs-engine version"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment