Skip to content

Commit

Permalink
test(deploy): env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
chengpeiquan committed Nov 29, 2024
1 parent 1c51096 commit fe9db8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ COPY . .
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build.
# ENV NEXT_TELEMETRY_DISABLED=1
ENV HELLO=${NEXT_PUBLIC_HELLO}
ENV WORLD=${NEXT_PUBLIC_WORLD}
ENV HELLO_WORLD=${NEXT_PUBLIC_HELLO_WORLD}

RUN \
if [ -f yarn.lock ]; then yarn run build; \
Expand All @@ -41,9 +44,6 @@ WORKDIR /app
ENV NODE_ENV=production
# Uncomment the following line in case you want to disable telemetry during runtime.
# ENV NEXT_TELEMETRY_DISABLED=1
ENV HELLO=${NEXT_PUBLIC_HELLO}
ENV WORLD=${NEXT_PUBLIC_WORLD}
ENV HELLO_WORLD=${NEXT_PUBLIC_HELLO_WORLD}

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
Expand Down

0 comments on commit fe9db8e

Please sign in to comment.