fix layer of entrypoint

This commit is contained in:
David Igón
2025-03-06 13:47:37 +01:00
parent 0424a85e2e
commit 065940a125
+3 -2
View File
@@ -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"]