Skip to content

Commit

Permalink
Remove unneeded install command. (#3427)
Browse files Browse the repository at this point in the history
* Remove unneeded install command.

* Update playwright Dockerfile version. Make dependabot track Dockerfile updates (#3429)

* Update playwright Dockerfile version

Without this commit: `npm install` runs and installs the version in package.json which was 1.39 while the preinstalled browsers targeted playwright 1.37.


Now that we are relying on the already installed libraries and browsers, we can get rid of the npm install in the Dockerfile too. 

TODO: Modify [dependabot](https://github.com/GoogleChrome/chromium-dashboard/blob/main/.github/dependabot.yml) to update the docker image. This should help prevent package.json playwright from outpacing the docker file image.

* Update dependabot.yml to track Dockerfile updates

* try

* final

---------

Co-authored-by: James C Scott III <[email protected]>
  • Loading branch information
jrobbins and jcscottiii authored Oct 19, 2023
1 parent bf29516 commit 6aeec90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ updates:
reviewers:
- "kyleju"
- "jrobbins"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
commit-message:
# Prefix all commit messages with "docker"
prefix: "docker"
reviewers:
- "jrobbins"
- "jcscottiii"
1 change: 1 addition & 0 deletions packages/playwright/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 2 additions & 2 deletions packages/playwright/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/playwright:v1.37.1-jammy
FROM mcr.microsoft.com/playwright:v1.39.0-jammy

ARG USERID
ARG GROUPID
Expand All @@ -18,6 +18,6 @@ USER pwuser
WORKDIR /work
# Cache the infrequent but time consuming changes early
COPY --chown=pwuser:pwuser package.json /work/
RUN npm install -D && npx playwright install
RUN npm install -D
# Copy the rest
COPY --chown=pwuser:pwuser . /work

0 comments on commit 6aeec90

Please sign in to comment.