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