feat: update Dockerfile and documentation for platform-specific dependency generation

This commit is contained in:
2025-11-04 22:31:27 +01:00
parent 56b8b832db
commit 3116312cbc
4 changed files with 27 additions and 4 deletions

View File

@@ -8,10 +8,12 @@ WORKDIR /usr/src/microsoft-rewards-script
ENV PLAYWRIGHT_BROWSERS_PATH=0
# Copy package files
COPY package.json package-lock.json tsconfig.json ./
COPY package.json tsconfig.json ./
# Install all dependencies required to build the script
RUN npm ci --ignore-scripts
# Generate fresh lockfile for target platform architecture
# This ensures native dependencies are resolved correctly
RUN npm install --ignore-scripts --package-lock-only \
&& npm ci --ignore-scripts
# Copy source and build
COPY . .