Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM node:18-alpine as runner
- WORKDIR /app
- RUN addgroup --system --gid 1001 nodejs
- RUN adduser --system --uid 1001 nextjs
- USER nextjs
- COPY ./next.config.js .
- COPY ./package.json .
- ENV NEXT_TELEMETRY_DISABLED 1
- COPY --chown=nextjs:nodejs ./.next/standalone ./
- COPY --chown=nextjs:nodejs ./.next/static ./.next/static
- COPY --chown=nextjs:nodejs ./public ./public
- EXPOSE 3000
- CMD ["node", "server.js"]
Advertisement
Add Comment
Please, Sign In to add comment