-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(chrome-headless): move to buster-slim, update fonts (#52)
- Loading branch information
1 parent
a2ca841
commit e0a6686
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,11 @@ | |
# | ||
|
||
# Base docker image | ||
FROM debian:stretch-slim | ||
FROM debian:buster-slim | ||
LABEL name="chrome-headless" \ | ||
maintainer="Justin Ribeiro <[email protected]>" \ | ||
version="2.0" \ | ||
description="Google Chrome Headless in a container" | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
maintainer="Justin Ribeiro <[email protected]>" \ | ||
version="3.0" \ | ||
description="Google Chrome Headless in a container" | ||
|
||
# Install deps + add Chrome Stable + purge all the things | ||
RUN apt-get update && apt-get install -y \ | ||
|
@@ -47,14 +45,14 @@ RUN apt-get update && apt-get install -y \ | |
fonts-kacst \ | ||
fonts-symbola \ | ||
fonts-noto \ | ||
ttf-freefont \ | ||
fonts-freefont-ttf \ | ||
--no-install-recommends \ | ||
&& apt-get purge --auto-remove -y curl gnupg \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Add Chrome as a user | ||
RUN groupadd -r chrome && useradd -r -g chrome -G audio,video chrome \ | ||
&& mkdir -p /home/chrome && chown -R chrome:chrome /home/chrome | ||
&& mkdir -p /home/chrome && chown -R chrome:chrome /home/chrome | ||
|
||
# Run Chrome non-privileged | ||
USER chrome | ||
|