Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
# Puppeteer-core doesn't have a browser
# so having executablePath in LH browser settings in mandatory

FROM alpine
FROM node:alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci --production

RUN apk add --update chromium nodejs npm

COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm ci && npm cache clean --force
FROM alpine:latest
RUN apk add --no-cache nodejs npm chromium
COPY --from=build /app .
13 changes: 7 additions & 6 deletions docker/v12.4.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
# Puppeteer-core doesn't have a browser
# so having executablePath in LH browser settings in mandatory

FROM alpine
FROM node:alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci --production

RUN apk add --update chromium nodejs npm

COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm ci && npm cache clean --force
FROM alpine:latest
RUN apk add --no-cache nodejs npm chromium
COPY --from=build /app .