chore: adding public env in docker

This commit is contained in:
원더 2021-01-23 12:31:06 +09:00
parent 505c8bb808
commit cbd2acbcec

View File

@ -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