From 6950170cc988162dda975e52fc7f6c0ad6512c4e Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 27 Jan 2024 22:00:06 +0100 Subject: [PATCH] fix: handling of arg and env --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c4e1291..a1cb0cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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