06c08ce89e
Co-authored-by: Amalie Erdal Mansaker <amalie.erdal.mansaker@nav.no>
18 lines
No EOL
308 B
Docker
18 lines
No EOL
308 B
Docker
FROM node:18-alpine
|
|
|
|
ENV NODE_ENV production
|
|
|
|
RUN addgroup --system --gid 1069 nodejs
|
|
RUN adduser --system --uid 1069 nextjs
|
|
|
|
WORKDIR /app
|
|
COPY --chown=nextjs:nodejs .next/standalone ./
|
|
COPY --chown=nextjs:nodejs .next/static ./.next/static
|
|
|
|
USER nextjs
|
|
|
|
EXPOSE 3000
|
|
|
|
ENV PORT 3000
|
|
|
|
CMD ["node", "server.js"] |