Skip to content

Commit 2eac322

Browse files
authored
Update Dockerfile
1 parent edfcfe7 commit 2eac322

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ COPY . .
2727
# Uncomment the following line in case you want to disable telemetry during the build.
2828
# ENV NEXT_TELEMETRY_DISABLED=1
2929

30+
# Set environment variables needed for build
31+
ARG NEXT_PUBLIC_IS_PRODUCTION
32+
ARG NEXT_PUBLIC_PAY_U_KEY_TEST
33+
ARG NEXT_PUBLIC_PAY_U_KEY_PROD
34+
35+
# Pass them to the build process
36+
ENV NEXT_PUBLIC_IS_PRODUCTION=${NEXT_PUBLIC_IS_PRODUCTION}
37+
ENV NEXT_PUBLIC_PAY_U_KEY_TEST=${NEXT_PUBLIC_PAY_U_KEY_TEST}
38+
ENV NEXT_PUBLIC_PAY_U_KEY_PROD=${NEXT_PUBLIC_PAY_U_KEY_PROD}
39+
3040
RUN \
3141
if [ -f yarn.lock ]; then yarn run build; \
3242
elif [ -f package-lock.json ]; then npm run build; \

0 commit comments

Comments
 (0)