We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36a9eb3 commit 5e5f9afCopy full SHA for 5e5f9af
1 file changed
node/Dockerfile
@@ -1,18 +1,17 @@
1
# Get Node LTS Alpine.
2
FROM node:22.14.0-alpine
3
4
-# Get packages.
5
-RUN apk update && apk add cifs-utils && apk add keyutils
6
-
7
# Create /var/www directory.
8
RUN mkdir -p /var/www
9
10
# Copy files into /var/www directory.
11
WORKDIR /var/www
12
COPY ./package.json .
13
14
-# Run NPM install.
+# Get packages & run NPM install.
+RUN apk update && apk add cifs-utils && apk add keyutils && apk add git
15
RUN npm install --production --silent
+RUN apk del git
16
17
# Copy remaining files.
18
COPY . .
0 commit comments