Revert docker file changes that did not fix authentication error

This commit is contained in:
JennyNou 2026-04-01 17:44:04 -04:00
parent 7080305976
commit e68a7e2ad6

View file

@ -5,9 +5,6 @@ FROM mcr.microsoft.com/playwright:v1.48.0-noble
# Set the working directory in the container # Set the working directory in the container
WORKDIR /app WORKDIR /app
# Accept GitHub token as a build argument
ARG GITHUB_TOKEN
# Copy package.json and package-lock.json # Copy package.json and package-lock.json
COPY package*.json ./ COPY package*.json ./
@ -17,8 +14,7 @@ RUN npm install
# Copy playwright-tests package files + authenticated .npmrc, then install # Copy playwright-tests package files + authenticated .npmrc, then install
COPY playwright-tests/package*.json ./playwright-tests/ COPY playwright-tests/package*.json ./playwright-tests/
COPY playwright-tests/.npmrc ./playwright-tests/ COPY playwright-tests/.npmrc ./playwright-tests/
RUN --mount=type=secret,id=GITHUB_TOKEN \ RUN cd playwright-tests && npm install
cd playwright-tests && GITHUB_TOKEN=$(cat /run/secrets/GITHUB_TOKEN) npm install
# Install Playwright browsers # Install Playwright browsers
RUN npx playwright install chromium --with-deps RUN npx playwright install chromium --with-deps