diff --git a/packages/templates/templates/playwright-js/Dockerfile b/packages/templates/templates/playwright-js/Dockerfile index afe99689155..3ffe2058ed6 100644 --- a/packages/templates/templates/playwright-js/Dockerfile +++ b/packages/templates/templates/playwright-js/Dockerfile @@ -25,5 +25,6 @@ RUN npm --quiet set progress=false \ COPY --chown=myuser . ./ -# Run the image. -CMD npm start --silent +# Run the image. If you know you won't need headful browsers, +# you can remove the XVFB start script for a micro perf gain. +CMD ./start_xvfb_and_run_cmd.sh && npm start --silent diff --git a/packages/templates/templates/puppeteer-js/Dockerfile b/packages/templates/templates/puppeteer-js/Dockerfile index decd2677075..80272b07668 100644 --- a/packages/templates/templates/puppeteer-js/Dockerfile +++ b/packages/templates/templates/puppeteer-js/Dockerfile @@ -27,4 +27,4 @@ COPY --chown=myuser . ./ # Run the image. If you know you won't need headful browsers, # you can remove the XVFB start script for a micro perf gain. -CMD ./start_xvfb_and_run_cmd.sh && npm run start:prod --silent +CMD ./start_xvfb_and_run_cmd.sh && npm start --silent