chore: setup .env file

This commit is contained in:
원더 2021-02-04 15:22:44 +09:00
parent 2ac365ebe8
commit 122a4acec1

View File

@ -19,9 +19,11 @@ RUN yarn install
# Copying source files
COPY . /usr/src/app
# public env
# env to file
RUN printf "NEXT_PUBLIC_TESTER_KEY=9f9c4a7ae9afeb045fe818ed8b741c70b1d25ec236b189566a0db020c5596441\nNEXT_PUBLIC_COMMIT_HASH=$(git rev-parse HEAD)\nNEXT_PUBLIC_BRANCH=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')" > .env.local
RUN env > .env.production.local
# 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