commit 646f42b6a9d47abbe6dad04afd576e274f74c40c parent 8739d715b1afd507b57a6b2f1042ed662f4aa284 Author: MS <ms@taler.net> Date: Thu, 17 Nov 2022 09:16:14 +0100 comment Diffstat:
| M | docker/demo/images/base/Dockerfile | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/docker/demo/images/base/Dockerfile b/docker/demo/images/base/Dockerfile @@ -11,11 +11,11 @@ RUN apt-get install -y autoconf autopoint libtool texinfo \ RUN pip3 install requests click poetry uwsgi htmlark ARG tags_file -# The following command works around COPY not being conditional. -# Mounts the current directory - where the tags file might be - -# to /context in the container. Note: build_base.sh 'cd' to -# the tags file's directory before building, and sets $tags_file -# to the tags file's basename. +# The following command provides a conditional copy from +# the host filesystem. It mounts the current directory - +# where the tags file might be - to /context in the container. +# Note: build_base.sh 'cd' to the tags file's directory before +# building, and sets $tags_file to the tags file's basename. RUN --mount=target=/context if test -n "$tags_file"; then cp \ /context/${tags_file} /tags.sh; else touch /tags.sh; fi