shrink directory configuration

This commit is contained in:
Benjamin Brummer
2024-11-29 13:40:46 +01:00
parent f722c91d21
commit 22d170a4e5

26
debian/Dockerfile vendored
View File

@@ -9,11 +9,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
gnupg2 \ gnupg2 \
gosu \ gosu \
supervisor \ supervisor \
# Packages to be checked # Unicode support for PDF
fonts-noto-cjk \ fonts-noto-cjk \
fonts-noto-cjk-extra \ fonts-noto-cjk-extra \
fonts-wqy-microhei \ fonts-wqy-microhei \
fonts-wqy-zenhei \ fonts-wqy-zenhei \
# Packages to be checked
libonig-dev \ libonig-dev \
libpng-dev \ libpng-dev \
libxml2-dev \ libxml2-dev \
@@ -50,20 +51,23 @@ 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 for chrome # Configure directories and permissions
RUN mkdir -p /var/www/.chrome/chrome-profile \ RUN mkdir -p \
mkdir -p /tmp/chrome \ /var/www/.chrome/chrome-profile \
&& chown -R www-data:www-data /var/www/.chrome \ /tmp/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 -R root:root \
/opt/google/chrome \
/usr/bin/google-chrome \
&& chmod 4755 /usr/bin/google-chrome \ && chmod 4755 /usr/bin/google-chrome \
&& chown -R root:root /opt/google/chrome \ && chmod -R 755 \
&& chmod -R 755 /opt/google/chrome \ /opt/google/chrome \
&& chown -R www-data:www-data /tmp/chrome \ /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 \
/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/