mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
google-chrome only needs to have ownership for /var/www, which is by default owned by root
This commit is contained in:
23
debian/Dockerfile
vendored
23
debian/Dockerfile
vendored
@@ -51,23 +51,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Configure directories and permissions
|
# # Configure chrome
|
||||||
RUN mkdir -p \
|
RUN chown www-data:www-data /var/www \
|
||||||
/var/www/.chrome/chrome-profile \
|
&& if [ "$(dpkg --print-architecture)" = "arm64" ]; then \
|
||||||
/tmp/chrome \
|
mkdir -p /var/www/.chrome/chrome-profile \
|
||||||
&& chmod -R 755 /var/www/.chrome \
|
&& chmod -R 755 /var/www/.chrome; \
|
||||||
&& if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
|
fi
|
||||||
chown -R root:root \
|
|
||||||
/opt/google/chrome \
|
|
||||||
/usr/bin/google-chrome \
|
|
||||||
&& chmod 4755 /usr/bin/google-chrome \
|
|
||||||
&& chmod -R 755 \
|
|
||||||
/opt/google/chrome \
|
|
||||||
/tmp/chrome; \
|
|
||||||
fi \
|
|
||||||
&& chown -R www-data:www-data \
|
|
||||||
/var/www \
|
|
||||||
/tmp/chrome
|
|
||||||
|
|
||||||
# Copy Install PHP extensions installer
|
# Copy Install PHP extensions installer
|
||||||
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||||
|
|||||||
Reference in New Issue
Block a user