From 84c4adc9b4c3fbc93a287c7daf2fcd07a0baf5be Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Sun, 28 Aug 2022 13:52:14 +0200 Subject: [PATCH] Fix not actually running composer in the build. --- Dockerfile.mariadb | 1 + Dockerfile.postgres | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile.mariadb b/Dockerfile.mariadb index 6478a3d..db2eeb3 100644 --- a/Dockerfile.mariadb +++ b/Dockerfile.mariadb @@ -52,6 +52,7 @@ COPY composer.* /sync/ COPY syncer /sync/syncer COPY sync /sync/sync COPY start.sh /sync/start.sh +RUN composer install ENV PATH="/sync:${PATH}" RUN chmod +x /sync/sync /etc/service/*/run CMD ["start.sh"] diff --git a/Dockerfile.postgres b/Dockerfile.postgres index 9039be2..4735d6c 100644 --- a/Dockerfile.postgres +++ b/Dockerfile.postgres @@ -58,6 +58,7 @@ COPY sync /sync/sync COPY start.sh /sync/start.sh ENV PATH="/sync:${PATH}" CMD ["start.sh"] +RUN composer install COPY postgres_healthcheck /sync/postgres_healthcheck HEALTHCHECK --start-period=30s CMD /sync/postgres_healthcheck RUN ln -s /sync/vendor/bin/wait-for-postgresql /usr/local/bin/wait-for-database