mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
Merge chrome related configuration into one RUN
This commit is contained in:
14
debian/Dockerfile
vendored
14
debian/Dockerfile
vendored
@@ -50,25 +50,21 @@ 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/*
|
||||||
|
|
||||||
# Set permissions for www-data to execute
|
# Configure directories and permissions for chrome
|
||||||
RUN mkdir -p /var/www/.chrome/chrome-profile \
|
RUN mkdir -p /var/www/.chrome/chrome-profile \
|
||||||
|
mkdir -p /tmp/chrome \
|
||||||
&& chown -R www-data:www-data /var/www/.chrome \
|
&& chown -R www-data:www-data /var/www/.chrome \
|
||||||
&& chmod -R 755 /var/www/.chrome \
|
&& chmod -R 755 /var/www/.chrome \
|
||||||
&& if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
|
&& if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
|
||||||
chown root:root /usr/bin/google-chrome \
|
chown root:root /usr/bin/google-chrome \
|
||||||
&& chmod 4755 /usr/bin/google-chrome \
|
&& chmod 4755 /usr/bin/google-chrome \
|
||||||
&& chown -R root:root /opt/google/chrome \
|
&& chown -R root:root /opt/google/chrome \
|
||||||
&& chmod -R 755 /opt/google/chrome; \
|
&& chmod -R 755 /opt/google/chrome \
|
||||||
|
&& chown -R www-data:www-data /tmp/chrome \
|
||||||
|
&& chmod -R 755 /tmp/chrome; \
|
||||||
fi \
|
fi \
|
||||||
&& chown -R www-data:www-data /var/www
|
&& chown -R www-data:www-data /var/www
|
||||||
|
|
||||||
# Create required directories with proper permissions
|
|
||||||
RUN mkdir -p /tmp/chrome \
|
|
||||||
&& if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
|
|
||||||
chown -R www-data:www-data /tmp/chrome \
|
|
||||||
&& chmod -R 755 /tmp/chrome; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 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