Change how composer deps are used.
This commit is contained in:
parent
8659c2824d
commit
db7d6d3761
|
@ -8,6 +8,7 @@
|
|||
!resources/locale/compiled
|
||||
!util/docker
|
||||
!util/openapi.php
|
||||
!vendor
|
||||
!web
|
||||
!templates
|
||||
!plugins
|
||||
|
|
|
@ -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 : |
|
||||
|
|
11
Dockerfile
11
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue