Fix not actually running composer in the build.
This commit is contained in:
parent
c3e4ae21a6
commit
84c4adc9b4
2 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ COPY composer.* /sync/
|
||||||
COPY syncer /sync/syncer
|
COPY syncer /sync/syncer
|
||||||
COPY sync /sync/sync
|
COPY sync /sync/sync
|
||||||
COPY start.sh /sync/start.sh
|
COPY start.sh /sync/start.sh
|
||||||
|
RUN composer install
|
||||||
ENV PATH="/sync:${PATH}"
|
ENV PATH="/sync:${PATH}"
|
||||||
RUN chmod +x /sync/sync /etc/service/*/run
|
RUN chmod +x /sync/sync /etc/service/*/run
|
||||||
CMD ["start.sh"]
|
CMD ["start.sh"]
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@ COPY sync /sync/sync
|
||||||
COPY start.sh /sync/start.sh
|
COPY start.sh /sync/start.sh
|
||||||
ENV PATH="/sync:${PATH}"
|
ENV PATH="/sync:${PATH}"
|
||||||
CMD ["start.sh"]
|
CMD ["start.sh"]
|
||||||
|
RUN composer install
|
||||||
COPY postgres_healthcheck /sync/postgres_healthcheck
|
COPY postgres_healthcheck /sync/postgres_healthcheck
|
||||||
HEALTHCHECK --start-period=30s CMD /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
|
RUN ln -s /sync/vendor/bin/wait-for-postgresql /usr/local/bin/wait-for-database
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue