Skip to content

Commit 5e5f9af

Browse files
committed
Need to add git to Dockerfile.
1 parent 36a9eb3 commit 5e5f9af

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

node/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
# Get Node LTS Alpine.
22
FROM node:22.14.0-alpine
33

4-
# Get packages.
5-
RUN apk update && apk add cifs-utils && apk add keyutils
6-
74
# Create /var/www directory.
85
RUN mkdir -p /var/www
96

107
# Copy files into /var/www directory.
118
WORKDIR /var/www
129
COPY ./package.json .
1310

14-
# Run NPM install.
11+
# Get packages & run NPM install.
12+
RUN apk update && apk add cifs-utils && apk add keyutils && apk add git
1513
RUN npm install --production --silent
14+
RUN apk del git
1615

1716
# Copy remaining files.
1817
COPY . .

0 commit comments

Comments
 (0)