mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-10 17:26:17 +00:00
feat: update Dockerfile and documentation for platform-specific dependency generation
This commit is contained in:
@@ -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 . .
|
||||
|
||||
Reference in New Issue
Block a user