Skip to content

Commit bc3db62

Browse files
committed
update dockerfile
1 parent de4fc29 commit bc3db62

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

Dockerfile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
<<<<<<< HEAD
21
FROM node:24-alpine as build
3-
=======
4-
FROM node:24-slim as build
5-
>>>>>>> 4389063392e10317ff55fb313a214346a4c9b131
2+
63
# Set build arguments with defaults
74
ARG NODE_ENV=production
85
ARG NPM_INSTALL_FLAGS=
@@ -14,22 +11,15 @@ WORKDIR /app
1411
COPY 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
2017
COPY website/ ./
2118

22-
<<<<<<< HEAD
2319
FROM node:24-alpine
2420

2521
# Create a non-root user and group
2622
RUN 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
3525
COPY --chown=appuser:appgroup --from=build /app /app

0 commit comments

Comments
 (0)