Remove/move down WORKDIR lines in Dockerfiles

They seem to stop Docker using its build cache.
Removing the line entirely stops weaveproxy from working, as it
assumes it can exec `./weave` from the current directory.
This commit is contained in:
Bryan Boreham authored and Marc Carré committed 2017-03-06 11:29:09 +00:00
1 parent eee3e8d331
commit e2c96cfa85
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -12,7 +12,6 @@ LABEL works.weave.role=system \
org.label-schema.vcs-url="https://github.com/weaveworks/weave" \
org.label-schema.vendor="Weaveworks"
WORKDIR /home/weave
ENTRYPOINT ["/home/weave/sigproxy", "/home/weave/weave"]
RUN apk add --update \
@@ -32,3 +31,4 @@ ADD ./weavewait /w/w
ADD ./weavewait_noop /w-noop/w
ADD ./weavewait_nomcast /w-nomcast/w
ADD ./docker /usr/bin/
WORKDIR /home/weave
-1
View File
@@ -1,5 +1,4 @@
FROM DOCKERHUB_USER/weaveexecARCH_EXT
WORKDIR /home/weave
ADD ./weaver /home/weave/
ADD weavedata.db /weavedb/
COPY ca-certificates.crt /etc/ssl/certs/