diff --git a/Dockerfile b/Dockerfile index 8dcecf5..aab80cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,22 +23,10 @@ COPY --from=deps /app/node_modules ./node_modules COPY . . RUN npm run build -# Production image, copy all the files and run next -FROM base AS runner -WORKDIR /app - ENV NODE_ENV production RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs - -# Copy necessary files from the builder stage -COPY --from=builder /app/public ./public -COPY --from=builder /app/.next ./.next -COPY --from=builder /app/node_modules ./node_modules -COPY --from=builder /app/package.json ./package.json -COPY --from=builder /app/next.config.js ./next.config.js - USER nextjs EXPOSE 3004