Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
# chromium > 76 is required. For now, this is only available in the 'edge' build
FROM alpine:edge
# Install chromium, some dependnecies, node and dumb-init
RUN apk add --no-cache \
chromium nss freetype freetype-dev harfbuzz ca-certificates ttf-freefont \
nodejs npm \
# Add user so we don't need --no-sandbox.
RUN addgroup -S chromium &&\
adduser -S -g chromium chromium &&\
mkdir /app &&\
chown -R chromium:chromium /app
# Run everything after as non-privileged user.
USER chromium
# Set CHROME_BIN to avoid tweaking config files (e.g. karma.conf.js)
ENV CHROME_BIN=/usr/bin/chromium-browser
# dumb-init avoids having zombie Chrome processes
ENTRYPOINT ["/usr/bin/dumb-init", "--"]