Merge pull request #130 from jackgr/simplify-dockerfiles

Simplify Dockerfiles.
pull/133/head
Jack Greenfield 9 years ago
commit 77c8c26e30

@ -30,20 +30,7 @@ COPY version version
WORKDIR "$GOPATH" WORKDIR "$GOPATH"
RUN mkdir -p src/github.com/kubernetes/deployment-manager \ RUN mkdir -p "$GOPATH/src/github.com" && chmod 777 "$GOPATH/src/github.com"
&& chmod 777 src/github.com/kubernetes/deployment-manager
RUN mkdir -p src/github.com/kubernetes/deployment-manager/manager \
&& chmod 777 src/github.com/kubernetes/deployment-manager/manager
COPY manager src/github.com/kubernetes/deployment-manager/manager
RUN mkdir -p src/github.com/kubernetes/deployment-manager/util \
&& chmod 777 src/github.com/kubernetes/deployment-manager/util
COPY util src/github.com/kubernetes/deployment-manager/util
RUN mkdir -p src/github.com/kubernetes/deployment-manager/version \
&& chmod 777 src/github.com/kubernetes/deployment-manager/version
COPY version src/github.com/kubernetes/deployment-manager/version
RUN go-wrapper download github.com/kubernetes/deployment-manager/manager/... RUN go-wrapper download github.com/kubernetes/deployment-manager/manager/...
RUN go-wrapper install github.com/kubernetes/deployment-manager/manager/... RUN go-wrapper install github.com/kubernetes/deployment-manager/manager/...

@ -34,28 +34,7 @@ RUN apt-get purge -y --auto-remove wget
WORKDIR "$GOPATH" WORKDIR "$GOPATH"
RUN mkdir -p src/github.com/kubernetes/deployment-manager \ RUN mkdir -p "$GOPATH/src/github.com" && chmod 777 "$GOPATH/src/github.com"
&& chmod 777 src/github.com/kubernetes/deployment-manager
RUN mkdir -p src/github.com/kubernetes/deployment-manager/expandybird \
&& chmod 777 src/github.com/kubernetes/deployment-manager/expandybird
COPY expandybird src/github.com/kubernetes/deployment-manager/expandybird
RUN mkdir -p src/github.com/kubernetes/deployment-manager/manager \
&& chmod 777 src/github.com/kubernetes/deployment-manager/manager
COPY manager src/github.com/kubernetes/deployment-manager/manager
RUN mkdir -p src/github.com/kubernetes/deployment-manager/resourcifier \
&& chmod 777 src/github.com/kubernetes/deployment-manager/resourcifier
COPY resourcifier src/github.com/kubernetes/deployment-manager/resourcifier
RUN mkdir -p src/github.com/kubernetes/deployment-manager/util \
&& chmod 777 src/github.com/kubernetes/deployment-manager/util
COPY util src/github.com/kubernetes/deployment-manager/util
RUN mkdir -p src/github.com/kubernetes/deployment-manager/version \
&& chmod 777 src/github.com/kubernetes/deployment-manager/version
COPY version src/github.com/kubernetes/deployment-manager/version
RUN go-wrapper download github.com/kubernetes/deployment-manager/resourcifier/... RUN go-wrapper download github.com/kubernetes/deployment-manager/resourcifier/...
RUN go-wrapper install github.com/kubernetes/deployment-manager/resourcifier/... RUN go-wrapper install github.com/kubernetes/deployment-manager/resourcifier/...

Loading…
Cancel
Save