-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.alpine
28 lines (22 loc) · 940 Bytes
/
Dockerfile.alpine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Based upon:
# https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker
# https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-on-alpine
ARG BUILDKIT_SBOM_SCAN_CONTEXT=true
ARG BUILDKIT_SBOM_SCAN_STAGE=true
ARG NODE_VERSION
FROM node:${NODE_VERSION}-alpine
LABEL org.opencontainers.image.authors="Shiv Jha-Mathur" \
org.opencontainers.image.source="https://github.com/shivjm/docker-node-chromium-alpine/" \
org.opencontainers.image.title="node-chromium-alpine" \
org.opencontainers.image.description="A minimal Docker image with Node and Chromium on Alpine Linux"
RUN apk add -q --update --no-cache \
chromium \
nss \
freetype \
freetype-dev \
harfbuzz \
ca-certificates \
ttf-freefont \
nodejs \
yarn
RUN /usr/bin/chromium-browser --no-sandbox --version > /etc/chromium-version