diff --git a/Dockerfile b/Dockerfile index 74259de..ee3ce42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,11 @@ RUN yarn install # Copying source files COPY . /usr/src/app +# public env + +RUN printf "NEXT_PUBLIC_COMMIT_HASH=$(git rev-parse HEAD)\nNEXT_PUBLIC_BRANCH=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')" > .env.local + + # Building app RUN yarn build