Skip to content
Snippets Groups Projects
Commit 6cb33076 authored by Jesper Noordsij's avatar Jesper Noordsij Committed by Konstantin Pavlov
Browse files

Replace COPY with bind mount in Alpine modules example

parent 4bf0763f
Branches
No related tags found
No related merge requests found
......@@ -62,10 +62,9 @@ RUN set -ex \
&& echo "BUILT_MODULES=\"$BUILT_MODULES\"" > /tmp/packages/modules.env
FROM ${NGINX_FROM_IMAGE}
COPY --from=builder /tmp/packages /tmp/packages
RUN set -ex \
RUN --mount=type=bind,target=/tmp/packages/,source=/tmp/packages/,from=builder \
set -ex \
&& . /tmp/packages/modules.env \
&& for module in $BUILT_MODULES; do \
apk add --no-cache --allow-untrusted /tmp/packages/nginx-module-${module}-${NGINX_VERSION}*.apk; \
done \
&& rm -rf /tmp/packages
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment