We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c013ef commit fda8e17Copy full SHA for fda8e17
.dockerignore
@@ -9,4 +9,3 @@
9
**/.editorconfig
10
**/dist
11
**/*.pem
12
-Dockerfile
Dockerfile
@@ -1,8 +1,17 @@
1
FROM node:20-slim
2
+
3
WORKDIR /usr/src/app
-COPY package.json package-lock.json ./
4
-RUN npm ci --production
5
+RUN apt-get update && apt-get install -y iputils-ping curl
6
7
+COPY . .
8
+RUN npm ci
+RUN npm run build
13
RUN npm cache clean --force
14
15
ENV NODE_ENV="production"
-COPY . .
16
17
CMD [ "npm", "start" ]
0 commit comments