fix: handling of arg and env

This commit is contained in:
Yarmo Mackenbach 2024-01-27 22:00:06 +01:00
parent 759f7bd79e
commit 6950170cc9
No known key found for this signature in database
GPG key ID: C248C28D432560ED

View file

@ -11,8 +11,11 @@ RUN yarn run build:static
FROM node:20-alpine
ENV CI_COMMIT_SHA
ENV CI_COMMIT_BRANCH
ARG CI_COMMIT_SHA
ARG CI_COMMIT_BRANCH
ENV COMMIT_SHA=$CI_COMMIT_SHA
ENV COMMIT_BRANCH=$CI_COMMIT_BRANCH
WORKDIR /app
COPY --from=builder /app/package.json /app/package.json