Features: Improved handling of navigation errors and automatic updates, optimized wait times, and cron job configuration

This commit is contained in:
2025-11-05 21:03:48 +01:00
parent 4e8bd59ff4
commit 693246c2d5
6 changed files with 125 additions and 67 deletions

View File

@@ -8,12 +8,10 @@ WORKDIR /usr/src/microsoft-rewards-script
ENV PLAYWRIGHT_BROWSERS_PATH=0
# Copy package files
COPY package.json tsconfig.json ./
COPY package.json package-lock.json tsconfig.json ./
# 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
# Install all dependencies required to build the script
RUN npm ci --ignore-scripts
# Copy source and build
COPY . .