Skip to content

Commit

Permalink
test with lose copy for composer lock
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Dec 23, 2019
1 parent 51bad81 commit 3d706bf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ WORKDIR /srv/api
ARG APP_ENV=prod

# prevent the reinstallation of vendors at every changes in the source code
COPY composer.json composer.lock symfony.lock /
COPY composer.json /srv/api/composer.json
COPY composer.lock /srv/api/composer.lock
COPY symfony.lock /srv/api/symfony.lock

RUN set -eux; \
composer install --prefer-dist --no-dev --no-scripts --no-progress --no-suggest; \
Expand All @@ -106,9 +108,6 @@ RUN set -eux; \
composer dump-autoload --classmap-authoritative --no-dev; \
composer run-script --no-dev post-install-cmd; \
chmod +x bin/console; sync

# Now that we have our own composer lets update
RUN composer update --no-interaction

VOLUME /srv/api/var

Expand Down

0 comments on commit 3d706bf

Please sign in to comment.