Refactor RUN bash -xec to just use RUN#14
Refactor RUN bash -xec to just use RUN#14maxnordlund wants to merge 2 commits intodocker-library:masterfrom
RUN bash -xec to just use RUN#14Conversation
This changes the `cd /usr/src/go/src` to use `WORKDIR` and `-x` flag to `|| exit $?`.
|
Is there a problem that this is solving? The current |
|
I didn't notice a big difference when I tested, but for me it feels like a hack, a way around the Dockerfile format. For example the use of |
|
Using |
|
I hadn't thought about the extra layers. So I removed the |
|
Ok, that's fair, but how about this, so the spirit of the original is kept? RUN set -ex; \
cd /usr/src/go/src; \
for platform in $GOLANG_CROSSPLATFORMS; do \
GOOS=${platform%/*} \
GOARCH=${platform##*/} \
./make.bash --no-clean 2>&1; \
doneThe |
This changes the
cd /usr/src/go/srcto useWORKDIRand-xflag to|| exit $?. I've tried this change on my machine, and it seams fine. Fair warning the log is ~7600 lines long.