Skip to content

Commit e6aceb8

Browse files
committed
fix: support headfull mode in puppeteer js project template
1 parent ba5f64c commit e6aceb8

File tree

1 file changed

+3
-2
lines changed
  • packages/templates/templates/puppeteer-js

1 file changed

+3
-2
lines changed

packages/templates/templates/puppeteer-js/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ RUN npm --quiet set progress=false \
2525
COPY --chown=myuser . ./
2626

2727

28-
# Run the image.
29-
CMD npm start --silent
28+
# Run the image. If you know you won't need headful browsers,
29+
# you can remove the XVFB start script for a micro perf gain.
30+
CMD ./start_xvfb_and_run_cmd.sh && npm run start:prod --silent

0 commit comments

Comments
 (0)