|
|
|
@ -25,10 +25,10 @@ COPY . .
|
|
|
|
|
# Uncomment the following line in case you want to disable telemetry during the build.
|
|
|
|
|
# ENV NEXT_TELEMETRY_DISABLED 1
|
|
|
|
|
|
|
|
|
|
RUN yarn build
|
|
|
|
|
# RUN yarn build
|
|
|
|
|
|
|
|
|
|
# If using npm comment out above and use below instead
|
|
|
|
|
# RUN npm run build
|
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
|
|
# Production image, copy all the files and run next
|
|
|
|
|
FROM node:16-alpine AS runner
|
|
|
|
@ -36,7 +36,7 @@ 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 NEXT_TELEMETRY_DISABLED 1
|
|
|
|
|
|
|
|
|
|
RUN addgroup --system --gid 1001 nodejs
|
|
|
|
|
RUN adduser --system --uid 1001 nextjs
|
|
|
|
|