fix: reset ENTRYPOINT so node app.js runs instead of sitespeed.io

Base image sitespeedio/sitespeed.io sets ENTRYPOINT=["sitespeed.io"],
causing our CMD ["node","app.js"] to be passed as args to sitespeed.io
which treated "node" as a URL to test.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 19:50:02 +02:00
parent 280e5f133f
commit 59aca88f24

View File

@@ -31,6 +31,10 @@ ENV PORT=3132 \
SITESPEED_BIN=/usr/local/lib/node_modules/sitespeed.io/bin/sitespeed.js \ SITESPEED_BIN=/usr/local/lib/node_modules/sitespeed.io/bin/sitespeed.js \
NODE_ENV=production NODE_ENV=production
EXPOSE 3000 EXPOSE 3132
CMD ["node", "app.js"] # Override the base image's ENTRYPOINT (which is "sitespeed.io") so that
# Docker doesn't prepend it to our CMD, causing sitespeed.io to treat
# "node" as a URL to test.
ENTRYPOINT ["node"]
CMD ["app.js"]