ci: install git in Dockerfile

This commit is contained in:
4gray committed 2023-10-25 22:48:43 +02:00
1 parent 190a28e3ec
commit dbb5a64995
1 file changed
+3 -2
+3 -2
View File
@@ -1,7 +1,7 @@
# Stage 1 - build environment # Stage 1 - build environment
FROM node:18-alpine AS build FROM node:18-alpine AS build
RUN apk add --no-cache python3 make g++ RUN apk add --no-cache python3 make g++ git
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app
@@ -10,10 +10,11 @@ WORKDIR /usr/src/app
#RUN chown node:node ./ #RUN chown node:node ./
#USER node #USER node
COPY .npmrc ./
COPY package*.json ./ COPY package*.json ./
# Install app dependencies # Install app dependencies
RUN npm ci && npm cache clean --force RUN npm ci
# Copy all required files # Copy all required files
COPY . . COPY . .