Skip to content

Commit

Permalink
fix(chrome-headless): remove opt pathing create (#42)
Browse files Browse the repository at this point in the history
Fix #40
  • Loading branch information
seyfer authored and justinribeiro committed Nov 19, 2019
1 parent 74aa61a commit a2ca841
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chrome-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ LABEL name="chrome-headless" \
maintainer="Justin Ribeiro <[email protected]>" \
version="2.0" \
description="Google Chrome Headless in a container"

ARG DEBIAN_FRONTEND=noninteractive

# Install deps + add Chrome Stable + purge all the things
RUN apt-get update && apt-get install -y \
Expand All @@ -52,8 +54,7 @@ RUN apt-get update && apt-get install -y \

# 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 /opt/google/chrome && chown -R chrome:chrome /opt/google/chrome
&& mkdir -p /home/chrome && chown -R chrome:chrome /home/chrome

# Run Chrome non-privileged
USER chrome
Expand Down

0 comments on commit a2ca841

Please sign in to comment.