Fix Alpine build with the missing `|| true`
This can prevent the build failed when there is no outside netcat listening for cache transferring.
This commit is contained in:
parent
5e2fdc873c
commit
2893221564
|
@ -51,7 +51,7 @@ RUN addgroup -g 1000 node \
|
|||
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
|
||||
&& ccache -s 1>&2 \
|
||||
&& apk del .build-deps \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
|
||||
&& rm -rf /root/.ccache/ \
|
||||
&& cd .. \
|
||||
&& rm -Rf "node-v$NODE_VERSION" \
|
||||
|
|
|
@ -51,7 +51,7 @@ RUN addgroup -g 1000 node \
|
|||
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
|
||||
&& ccache -s 1>&2 \
|
||||
&& apk del .build-deps \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
|
||||
&& rm -rf /root/.ccache/ \
|
||||
&& cd .. \
|
||||
&& rm -Rf "node-v$NODE_VERSION" \
|
||||
|
|
|
@ -51,7 +51,7 @@ RUN addgroup -g 1000 node \
|
|||
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
|
||||
&& ccache -s 1>&2 \
|
||||
&& apk del .build-deps \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
|
||||
&& rm -rf /root/.ccache/ \
|
||||
&& cd .. \
|
||||
&& rm -Rf "node-v$NODE_VERSION" \
|
||||
|
|
|
@ -51,7 +51,7 @@ RUN addgroup -g 1000 node \
|
|||
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
|
||||
&& ccache -s 1>&2 \
|
||||
&& apk del .build-deps \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
|
||||
&& rm -rf /root/.ccache/ \
|
||||
&& cd .. \
|
||||
&& rm -Rf "node-v$NODE_VERSION" \
|
||||
|
|
|
@ -43,7 +43,7 @@ RUN addgroup -g 1000 node \
|
|||
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
|
||||
&& ccache -s 1>&2 \
|
||||
&& apk del .build-deps \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
|
||||
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
|
||||
&& rm -rf /root/.ccache/ \
|
||||
&& cd .. \
|
||||
&& rm -Rf "node-v$NODE_VERSION" \
|
||||
|
|
Loading…
Reference in New Issue