Skip to content

Commit

Permalink
Remove nodejs from backend image once copying over to playwright dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Sep 5, 2023
1 parent 0a8dab7 commit 7aa7e92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ RUN apt-get update
RUN apt-get install nodejs -y
# replace nodejs packaged with playwright (18.17.0) with the one installed above
RUN cp /usr/bin/node /usr/local/lib/python3.11/site-packages/playwright/driver/node
# remove nodejs (except for the binary we moved into playwright)
RUN apt-get remove -y nodejs

# Cleanup for CVEs and size reduction
RUN apt-get remove -y linux-libc-dev \
Expand Down

0 comments on commit 7aa7e92

Please sign in to comment.