updated dockerfile

This commit is contained in:
Philip Cheung 2024-10-08 14:31:22 +08:00
parent ff5e15f271
commit 722edc1b73
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,8 @@
FROM node:18-alpine
RUN mkdir -p /app
WORKDIR /app
COPY package.json ./
@ -9,6 +11,9 @@ RUN npm install
RUN npm install --save-dev
COPY . /app
# Build the Next.js app
RUN npm run build