From 964492aa0ef2cb8d274cd01d1275bb361c672ee7 Mon Sep 17 00:00:00 2001 From: Nick Jansen Date: Thu, 2 May 2024 09:10:35 +0200 Subject: [PATCH] Fix syntax in Dockerfile chown commands The Dockerfile has been updated to correctly use the --chown flag when copying files. The change ensures that the copied files have the correct ownership assigned. This fix improves our container build process and avoids potential permission issues. --- src/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Dockerfile b/src/Dockerfile index 48defdd..5a10753 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -27,7 +27,7 @@ RUN /runtime/bin/install curl xz-utils ca-certificates \ && curl -L https://github.com/jwilder/dockerize/releases/download/${DOCKERIZE_VERSION}/dockerize-linux-${TARGETARCH}-${DOCKERIZE_VERSION}.tar.gz -o - | tar xzf - -C /runtime/bin \ && chown -R $RUNTIME_UID:$RUNTIME_GID /etc/s6-overlay/s6-rc.d/user -COPY --chown $RUNTIME_UID:$RUNTIME_GID ./runtime / +COPY --chown=$RUNTIME_UID:$RUNTIME_GID ./runtime / USER ${RUNTIME_UID} @@ -57,7 +57,7 @@ RUN /runtime/bin/install gnupg2 software-properties-common less msmtp unzip \ && /runtime/bin/install $(cat /runtime/packages/php-${BUILD_VERSION}.txt) \ && /runtime/bin/rchown /etc/php/current -COPY --chown $RUNTIME_UID:$RUNTIME_GID ./php / +COPY --chown=$RUNTIME_UID:$RUNTIME_GID ./php / COPY --from=composer:2 /usr/bin/composer /usr/bin/composer @@ -78,7 +78,7 @@ RUN /runtime/bin/install php${BUILD_VERSION}-fpm libfcgi-bin \ && rm /etc/php/current/fpm/pool.d/www.conf \ && /runtime/bin/rchown /etc/php/current -COPY --chown $RUNTIME_UID:$RUNTIME_GID ./php-fpm / +COPY --chown=$RUNTIME_UID:$RUNTIME_GID ./php-fpm / USER $RUNTIME_UID @@ -100,7 +100,7 @@ RUN /runtime/bin/install nginx \ && /runtime/bin/rchown /etc/nginx /var/log/nginx /var/lib/nginx \ && setcap "cap_net_bind_service=+ep" /usr/sbin/nginx -COPY --chown $RUNTIME_UID:$RUNTIME_GID ./php-nginx / +COPY --chown=$RUNTIME_UID:$RUNTIME_GID ./php-nginx / USER $RUNTIME_UID @@ -127,7 +127,7 @@ RUN curl http://rpms.litespeedtech.com/debian/lst_debian_repo.gpg -o /etc/apt/tr && /runtime/bin/rchown /usr/local/lsws \ && setcap "cap_net_bind_service=+ep" /usr/local/lsws/bin/openlitespeed -COPY --chown $RUNTIME_UID:$RUNTIME_GID ./php-ols / +COPY --chown=$RUNTIME_UID:$RUNTIME_GID ./php-ols / USER $RUNTIME_UID