fix Dockerfile
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 2m15s

This commit is contained in:
Lee 2024-04-21 20:22:17 +01:00
parent d26c70f507
commit a200fa045c

@ -22,6 +22,10 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
# Get the git commit hash
ARG GIT_REV
ENV GIT_REV ${GIT_REV}
# Next.js collects completely anonymous telemetry data about general usage. # Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry # Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build. # Uncomment the following line in case you want to disable telemetry during the build.
@ -38,10 +42,6 @@ RUN \
FROM base AS runner FROM base AS runner
WORKDIR /app WORKDIR /app
# Get the git commit hash
ARG GIT_REV
ENV GIT_REV ${GIT_REV}
ENV NODE_ENV production ENV NODE_ENV production
# Uncomment the following line in case you want to disable telemetry during runtime. # Uncomment the following line in case you want to disable telemetry during runtime.
ENV NEXT_TELEMETRY_DISABLED 1 ENV NEXT_TELEMETRY_DISABLED 1