Skip to content

Commit

Permalink
cleanup part 1 (#4355)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Dec 27, 2024
1 parent d8a04c2 commit 3c9ecce
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile-slim
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand All @@ -22,7 +22,8 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app
COPY tools/postinstall.js /usr/src/app/tools/postinstall.js
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 install --production && npm cache clean --force && npm uninstall npm npx -g

WORKDIR /usr/src/app
COPY docker/scripts/start-slim.sh /start.sh

Expand Down

0 comments on commit 3c9ecce

Please sign in to comment.