From c28a46459d8a435aa74ded5110e57edf997742bd Mon Sep 17 00:00:00 2001 From: Yash <78804783+yashd-dev@users.noreply.github.com> Date: Mon, 14 Oct 2024 20:54:46 +0530 Subject: [PATCH] fix: fixing docker image --- Dockerfile | 12 ------------ 1 file changed, 12 deletions(-) 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