added build steps

This commit is contained in:
2024-09-24 08:33:11 -06:00
parent eb73b7217f
commit 6eaf48609e
6 changed files with 72 additions and 7 deletions

15
nextjs/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:22-alpine
WORKDIR /app
COPY package*.json .
RUN npm i
COPY . .
RUN mkdir -p storage
RUN npm run build
CMD [ "npm", "run", "start" ]