envsubst within docker using build-arg
Is it possible to use envsubst with build-arg during build time of the docker image ? I have a following scenario: FROM alpine as substitutor ARG ROOT_PWD RUN apk add --no-cache envsubst WORKDIR /app COPY ./myfile.json . RUN export ROOT_PASSWORD=${ROOT_PWD}…