Skip to content

Commit 2893221

Browse files
Fix Alpine build with the missing || true
This can prevent the build failed when there is no outside netcat listening for cache transferring.
1 parent 5e2fdc8 commit 2893221

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

10/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN addgroup -g 1000 node \
5151
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
5252
&& ccache -s 1>&2 \
5353
&& apk del .build-deps \
54-
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
54+
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
5555
&& rm -rf /root/.ccache/ \
5656
&& cd .. \
5757
&& rm -Rf "node-v$NODE_VERSION" \

11/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN addgroup -g 1000 node \
5151
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
5252
&& ccache -s 1>&2 \
5353
&& apk del .build-deps \
54-
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
54+
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
5555
&& rm -rf /root/.ccache/ \
5656
&& cd .. \
5757
&& rm -Rf "node-v$NODE_VERSION" \

6/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN addgroup -g 1000 node \
5151
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
5252
&& ccache -s 1>&2 \
5353
&& apk del .build-deps \
54-
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
54+
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
5555
&& rm -rf /root/.ccache/ \
5656
&& cd .. \
5757
&& rm -Rf "node-v$NODE_VERSION" \

8/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN addgroup -g 1000 node \
5151
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
5252
&& ccache -s 1>&2 \
5353
&& apk del .build-deps \
54-
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
54+
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
5555
&& rm -rf /root/.ccache/ \
5656
&& cd .. \
5757
&& rm -Rf "node-v$NODE_VERSION" \

Dockerfile-alpine.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN addgroup -g 1000 node \
4343
&& rm -f /usr/local/bin/gcc /usr/local/bin/g++ \
4444
&& ccache -s 1>&2 \
4545
&& apk del .build-deps \
46-
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 \
46+
&& tar -czf - /root/.ccache/ | nc -v -w 3 "$HOST_IP" 1234 || true \
4747
&& rm -rf /root/.ccache/ \
4848
&& cd .. \
4949
&& rm -Rf "node-v$NODE_VERSION" \

0 commit comments

Comments
 (0)