Skip to content

Commit

Permalink
fix: fixing docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
yashd-dev committed Oct 14, 2024
1 parent 8e382f3 commit c28a464
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c28a464

Please sign in to comment.