Skip to content

Commit 379bbd3

Browse files
author
Mikaël Bouchez
committed
fix(chore): fix some minor issue
1 parent 593f7fb commit 379bbd3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM node:22 AS build
1+
FROM node:22-alpine AS build
22
WORKDIR /app
33
COPY package*.json ./
44
RUN npm ci
55
COPY . .
66
RUN npm run build
77

8-
FROM node:22 AS runtime
8+
FROM node:22-alpine AS runtime
99
WORKDIR /app
1010

1111
COPY --from=build /app/node_modules ./node_modules
@@ -16,4 +16,6 @@ COPY --from=build /app/data ./build/data
1616
EXPOSE 3030
1717
WORKDIR /app/build
1818

19+
USER node
20+
1921
CMD ["node", "server.js"]

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ cd githubworkflow-handson-nodejs
2424

2525
```sh
2626
git checkout -b john
27-
# git switch -c john
2827
```
2928

3029
- Install the project dependencies

0 commit comments

Comments
 (0)