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 f9c58a0 commit 67cab55Copy full SHA for 67cab55
result/Dockerfile
@@ -1,22 +1,20 @@
1
FROM node:18-slim
2
3
# add curl for healthcheck
4
-RUN apt-get update \
5
- && apt-get install -y --no-install-recommends \
6
- curl \
7
- tini \
8
- && rm -rf /var/lib/apt/lists/*
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends curl tini && \
+ rm -rf /var/lib/apt/lists/*
9
10
-WORKDIR /app
+WORKDIR /usr/local/app
11
12
# have nodemon available for local dev use (file watching)
13
RUN npm install -g nodemon
14
15
COPY package*.json ./
16
17
-RUN npm ci \
18
- && npm cache clean --force \
19
- && mv /app/node_modules /node_modules
+RUN npm ci && \
+ npm cache clean --force && \
+ mv /usr/local/app/node_modules /node_modules
20
21
COPY . .
22
0 commit comments