Skip to content

Commit

Permalink
Merge pull request ethereum-optimism#7930 from ethereum-optimism/10-3…
Browse files Browse the repository at this point in the history
…0-fix_fm-test-services_Use_lockfile_in_docker_test

fix(fm-test-services): Use lockfile in docker test
  • Loading branch information
roninjin10 authored Nov 4, 2023
2 parents 5623db6 + 0205424 commit 8443712
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ufm-test-services/metamask/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ WORKDIR /app
# Update PATH
ENV PATH /app/node_modules/.bin:$PATH

RUN npm i -g pnpm

RUN if [ "$METAMASK_PLAYWRIGHT_RUN_HEADLESS" != "false" ]; then \
apt-get update && \
apt-get install -y xvfb && \
rm -rf /var/lib/apt/lists/* ; \
fi

# Copy necessary files and directories
COPY package.json /app/
RUN npm install
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml /app/
RUN pnpm install --frozen-lockfile
COPY tests /app/tests/
COPY playwright.config.ts /app/
COPY start.sh /app/
Expand Down

0 comments on commit 8443712

Please sign in to comment.