Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#syntax=docker/dockerfile:1

#=== Build stage: Install dependencies ===#
FROM node:25 AS builder
FROM dhi.io/node:25-debian13-sfw-dev AS builder

WORKDIR /app

Expand All @@ -10,7 +10,7 @@ COPY package.json ./
RUN npm i --no-optional && npm cache clean --force

#=== Final stage: Create minimal runtime image ===#
FROM node:25
FROM dhi.io/node:25-debian13

ENV BLUEBIRD_WARNINGS=0 \
NODE_ENV=production \
Expand All @@ -20,9 +20,9 @@ ENV BLUEBIRD_WARNINGS=0 \

WORKDIR /app

COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder --chown=node:node /app/node_modules ./node_modules

COPY . /app
COPY --chown=node:node . /app

CMD ["node","/app/app.js"]

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"express": "5.2.1",
"lodahs": "0.0.1-security"
"lodash": "4.17.23"
},
"devDependencies": {
"chai": "^4.2.0",
Expand Down