-
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.
fix(chrome-headless): remove opt pathing create (#42)
Fix #40
- Loading branch information
1 parent
74aa61a
commit a2ca841
Showing
1 changed file
with
3 additions
and
2 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 |
---|---|---|
|
@@ -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 \ | ||
|
@@ -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 | ||
|