Fix Docker build and GitHub Actions workflow issues with npm install

This commit is contained in:
stabgan
2025-03-26 23:13:43 +05:30
parent 4f1b258a01
commit d02e0a9299
2 changed files with 22 additions and 9 deletions

View File

@@ -8,9 +8,13 @@ RUN apk add --no-cache \
make \
python3
# Configure npm to handle potential certificate issues
RUN npm config set strict-ssl false
RUN npm config set registry https://registry.npmjs.org/
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install
RUN npm ci
# Copy source code
COPY . .