File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <<<<<<< HEAD
21FROM node:24-alpine as build
3- =======
4- FROM node:24-slim as build
5- >>>>>>> 4389063392e10317ff55fb313a214346a4c9b131
2+
63# Set build arguments with defaults
74ARG NODE_ENV=production
85ARG NPM_INSTALL_FLAGS=
@@ -14,22 +11,15 @@ WORKDIR /app
1411COPY website/package*.json ./
1512
1613# Install dependencies based on environment and flags
17- RUN npm install $NPM_INSTALL_FLAGS
14+ RUN npm ci $NPM_INSTALL_FLAGS
1815
1916# Copy website files
2017COPY website/ ./
2118
22- <<<<<<< HEAD
2319FROM node:24-alpine
2420
2521# Create a non-root user and group
2622RUN addgroup -S appgroup && adduser -S -G appgroup appuser
27- =======
28- FROM node:24-slim
29-
30- # Create a non-root user and group
31- RUN addgroup --system appgroup && adduser --system --ingroup appgroup appuser
32- >>>>>>> 4389063392e10317ff55fb313a214346a4c9b131
3323
3424# Copy layer wfrom build image
3525COPY --chown=appuser:appgroup --from=build /app /app
You can’t perform that action at this time.
0 commit comments