Change how composer deps are used.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-06-23 06:25:03 -05:00
parent 8659c2824d
commit db7d6d3761
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
3 changed files with 11 additions and 3 deletions

View File

@ -8,6 +8,7 @@
!resources/locale/compiled
!util/docker
!util/openapi.php
!vendor
!web
!templates
!plugins

View File

@ -122,7 +122,7 @@ jobs :
run : |
chmod 777 tests/_output/
chmod 777 tests/_support/_generated
docker-compose exec -T --user="azuracast" web composer run ci-test
docker-compose exec -T --user="azuracast" web composer run codeception-no-coverage
- name : Stop all running containers.
run : |

View File

@ -49,8 +49,16 @@ ENV LANG="en_US.UTF-8" \
PROFILING_EXTENSION_HTTP_KEY=dev \
PROFILING_EXTENSION_HTTP_IP_WHITELIST=127.0.0.1
# START Operations as `azuracast` user
USER azuracast
RUN touch /var/azuracast/.docker
WORKDIR /var/azuracast/www
# END Operations as `azuracast` user
USER root
# Entrypoint and default command
ENTRYPOINT ["/usr/local/bin/uptime_wait"]
CMD ["/usr/local/bin/my_init"]
@ -118,8 +126,7 @@ RUN composer install \
COPY --chown=azuracast:azuracast . .
RUN composer dump-autoload --optimize --classmap-authoritative \
&& touch /var/azuracast/.docker
RUN composer dump-autoload --optimize --classmap-authoritative
# END Operations as `azuracast` user
USER root