Closed csware closed 3 years ago
Did test this assertion before posting? I am asking because, when looking at the relevant script, there is an initial set -e
that should terminate the whole RUN
if any of the commands fail.
RUN set -eux; \
[...]
wget "${TEAMSPEAK_URL}" -O server.tar.bz2; \
echo "${TEAMSPEAK_CHECKSUM} *server.tar.bz2" | sha256sum -c -; \
[...]
Argh. You are right. (I spotted this issue in multiple Dockerfiles, but I oversaw the set -e
part in this case.
Sorry for the noise.
Because
;
is used to concatenate commands for the RUN activity instead of&&
the docker image can be created even if the checksum test fails.Solution: Better use
&&
instead of;