Restore composer.json copy in Dockerfile

This commit is contained in:
Bubka 2022-05-09 22:20:20 +02:00
parent 1196a1413e
commit 9ddee2c539

View File

@ -18,6 +18,7 @@ ARG GID=1000
COPY --from=build-composer --chown=${UID}:${GID} /usr/bin/composer /usr/bin/composer
RUN apk add --no-cache unzip
WORKDIR /srv
COPY artisan composer.json ./
COPY database ./database
RUN composer install --prefer-dist --no-scripts --no-dev --no-autoloader
RUN composer dump-autoload --no-scripts --no-dev --optimize