diff --git a/Dockerfile-slim b/Dockerfile-slim index afccc13d7c..2a9cb16536 100644 --- a/Dockerfile-slim +++ b/Dockerfile-slim @@ -2,11 +2,11 @@ FROM node:20.9.0-bookworm-slim ARG TARGETPLATFORM=linux/amd64 -ENV SITESPEED_IO_BROWSERTIME__DOCKER true -ENV SITESPEED_IO_BROWSERTIME__VIDEO false -ENV SITESPEED_IO_BROWSERTIME__BROWSER firefox -ENV SITESPEED_IO_BROWSERTIME__VISUAL_METRICS false -ENV SITESPEED_IO_BROWSERTIME__HEADLESS true +ENV SITESPEED_IO_BROWSERTIME__DOCKER=true +ENV SITESPEED_IO_BROWSERTIME__VIDEO=false +ENV SITESPEED_IO_BROWSERTIME__BROWSER=firefox +ENV SITESPEED_IO_BROWSERTIME__VISUAL_METRICS=false +ENV SITESPEED_IO_BROWSERTIME__HEADLESS=true ENV PATH="/usr/local/bin:${PATH}" @@ -21,7 +21,7 @@ RUN echo "deb http://deb.debian.org/debian/ unstable main contrib non-free" >> / RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY . /usr/src/app -RUN CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm install --production && npm cache clean --force && npm uninstall npm -g +RUN CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm ci --only=production && npm cache clean --force && npm uninstall npm npx -g WORKDIR /usr/src/app COPY docker/scripts/start-slim.sh /start.sh