🚀deploy
Co-authored-by: Amalie Erdal Mansaker <amalie.erdal.mansaker@nav.no>
This commit is contained in:
parent
6c08b11d37
commit
06c08ce89e
4 changed files with 84 additions and 0 deletions
18
frontend/Dockerfile
Normal file
18
frontend/Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
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"]
|
Reference in a new issue