| FROM node:20-alpine | |
| WORKDIR /app | |
| # copy manifests only first (better layer caching) | |
| COPY package.json ./ | |
| # If you DO have a lock file in future, you can switch back to `npm ci` | |
| RUN npm install | |
| # now copy the rest and build | |
| COPY . /app | |
| RUN npm run build | |
| EXPOSE 3000 | |
| CMD ["npm","start"] | |