Fix not actually running composer in the build.

This commit is contained in:
Greyscale 2022-08-28 13:52:14 +02:00
parent c3e4ae21a6
commit 84c4adc9b4
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2
2 changed files with 2 additions and 0 deletions

View file

@ -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"]

View file

@ -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