Skip to content

Commit fda8e17

Browse files
committed
update Dockerfile
1 parent 0c013ef commit fda8e17

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@
99
**/.editorconfig
1010
**/dist
1111
**/*.pem
12-
Dockerfile

Dockerfile

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
FROM node:20-slim
2+
23
WORKDIR /usr/src/app
3-
COPY package.json package-lock.json ./
4-
RUN npm ci --production
4+
5+
RUN apt-get update && apt-get install -y iputils-ping curl
6+
7+
COPY . .
8+
9+
RUN npm ci
10+
11+
RUN npm run build
12+
513
RUN npm cache clean --force
14+
615
ENV NODE_ENV="production"
7-
COPY . .
16+
817
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)