Skip to content

Commit

Permalink
fix(fm-test-services): Use lockfile in docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Cory authored and Will Cory committed Nov 3, 2023
1 parent 85d9328 commit 0205424
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 0205424

Please sign in to comment.