We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 593f7fb commit 379bbd3Copy full SHA for 379bbd3
Dockerfile
@@ -1,11 +1,11 @@
1
-FROM node:22 AS build
+FROM node:22-alpine AS build
2
WORKDIR /app
3
COPY package*.json ./
4
RUN npm ci
5
COPY . .
6
RUN npm run build
7
8
-FROM node:22 AS runtime
+FROM node:22-alpine AS runtime
9
10
11
COPY --from=build /app/node_modules ./node_modules
@@ -16,4 +16,6 @@ COPY --from=build /app/data ./build/data
16
EXPOSE 3030
17
WORKDIR /app/build
18
19
+USER node
20
+
21
CMD ["node", "server.js"]
README.md
@@ -24,7 +24,6 @@ cd githubworkflow-handson-nodejs
24
25
```sh
26
git checkout -b john
27
-# git switch -c john
28
```
29
30
- Install the project dependencies
0 commit comments