Skip to content

Commit

Permalink
feat(chrome-headless): move to buster-slim, update fonts (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinribeiro authored Nov 19, 2019
1 parent a2ca841 commit e0a6686
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions chrome-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit e0a6686

Please sign in to comment.