Exclude dev dependencies from Docker build.

This commit is contained in:
Buster "Silver Eagle" Neece 2020-01-22 04:47:37 -06:00
parent 6e98e0e207
commit 7938d0d734
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 1 additions and 3 deletions

View File

@ -37,16 +37,14 @@ USER azuracast
WORKDIR /var/azuracast/www
# Add code
COPY --chown=azuracast:azuracast ./composer.json ./composer.lock ./
RUN composer install \
--ignore-platform-reqs \
--no-dev \
--no-ansi \
--no-autoloader \
--no-interaction \
--no-scripts
# We need to copy our whole application so that we can generate the autoload file inside the vendor folder.
COPY --chown=azuracast:azuracast . .
RUN composer dump-autoload --optimize --classmap-authoritative \