Skip to content

Commit c883406

Browse files
committed
Workaround for sporadic failures of sequence of dockerfile COPY commands.
1 parent 1054e74 commit c883406

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

templates/docker-debian.in

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,42 @@ RUN python3 -m compileall -q "@AUX_PREFIX@/lib/python@PYVERSION@/site-packages"
6868
FROM @DOCKER_BASE@
6969

7070
# Copy our installed software binaries and libraries.
71+
# NOTE: The "RUN true" commands work around a docker bug:
72+
# https://github.com/moby/moby/issues/37965
73+
#
7174

7275
COPY --from=builder /lib /lib/
76+
RUN true
77+
7378
COPY --from=builder /bin /bin/
79+
RUN true
80+
7481
COPY --from=builder /sbin /sbin/
82+
RUN true
83+
7584
COPY --from=builder /etc /etc/
85+
RUN true
86+
7687
COPY --from=builder /usr/bin /usr/bin/
88+
RUN true
89+
7790
COPY --from=builder /usr/sbin /usr/sbin/
91+
RUN true
92+
7893
COPY --from=builder /usr/lib /usr/lib/
94+
RUN true
95+
7996
COPY --from=builder /usr/include /usr/include/
97+
RUN true
98+
8099
COPY --from=builder /usr/libexec /usr/libexec/
100+
RUN true
101+
81102
COPY --from=builder /usr/share /usr/share/
103+
RUN true
104+
82105
COPY --from=builder /usr/local /usr/local/
106+
RUN true
83107

84108
# Home directory
85109

0 commit comments

Comments
 (0)