What is the proper syntax for a RUN
instruction in a Dockerfile
, that requires mounting a secret, in exec form?
In other words, if a Dockerfile
that looks something like:
FROM node:fermium-alpine
# . . .
RUN --mount=type=secret,id=npmrc yarn build:production
# . . .
how could the RUN
instruction above be converted from shell form to exec form? There doesn't seem to be an example in the official docs here.