Skip to content

Commit

Permalink
just use official image
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed Mar 8, 2024
1 parent 9c68bc0 commit b821cea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions deploy/monitor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM node:21-bookworm
FROM mcr.microsoft.com/playwright:v1.42.1-jammy

RUN useradd -m runner
USER runner
WORKDIR /home/runner

COPY package*.json .

ENV PLAYWRIGHT_BROWSERS_PATH=0
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1

RUN npm ci --ignore-scripts
RUN npx playwright install chromium --with-deps

RUN ./node_modules/pm2/bin/pm2 install pm2-logrotate
RUN ./node_modules/pm2/bin/pm2 set pm2-logrotate:max_size 1M
Expand Down

0 comments on commit b821cea

Please sign in to comment.