add dockerfile
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM node:current-alpine AS build
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install
|
||||
RUN npx prisma generate
|
||||
RUN npm run build
|
||||
RUN cp -r .next/static .next/standalone/.next/
|
||||
|
||||
FROM node:current-alpine AS production
|
||||
COPY --from=build /app/.next/standalone /app
|
||||
EXPOSE 3000
|
||||
WORKDIR /app
|
||||
CMD ["node", "server.js"]
|
Reference in New Issue
Block a user