From dbb5a64995e9a86b59976216b948bd5c7df485ba Mon Sep 17 00:00:00 2001 From: 4gray <4gray@users.noreply.github.com> Date: Wed, 25 Oct 2023 22:13:49 +0200 Subject: [PATCH] ci: install git in Dockerfile --- docker/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c24a881e2..fd99b15c1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,7 @@ # Stage 1 - build environment 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 WORKDIR /usr/src/app @@ -10,10 +10,11 @@ WORKDIR /usr/src/app #RUN chown node:node ./ #USER node +COPY .npmrc ./ COPY package*.json ./ # Install app dependencies -RUN npm ci && npm cache clean --force +RUN npm ci # Copy all required files COPY . .