From 065940a125dfccc90678bd4ea9bfcd8644bf772f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ig=C3=B3n?= Date: Thu, 6 Mar 2025 13:47:37 +0100 Subject: [PATCH] fix layer of entrypoint --- docker/php/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index 7e4b67b..6c5d962 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -47,6 +47,9 @@ FROM base AS prod COPY . /app RUN chown -R www-data:www-data /app +COPY entrypoint.sh /usr/local/bin/entrypoint.sh +RUN chmod +x /usr/local/bin/entrypoint.sh + USER www-data WORKDIR /app @@ -54,8 +57,6 @@ RUN composer install --prefer-dist --no-scripts --no-dev --optimize-autoloader EXPOSE 9000 -COPY --chmod=+x entrypoint.sh /usr/local/bin/entrypoint.sh - ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] CMD ["php-fpm"]