-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Dockerfile COPY failed #490
Conversation
FIX: `ERROR: Service 'php' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder210691310/composer.lock: no such file or directory` on first run `docker-compose up`
@@ -76,7 +76,7 @@ WORKDIR /srv/sylius | |||
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 *.lock ./ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, all files with the suffix .lock
will be copied. IMHO better approach is proposed here #559 where we limit files to composer
only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about yarn.lock
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yarn.lock is copied a couple of lines below
Line 124 in 017691d
COPY package.json yarn.lock ./ |
Hey @FDiskas, from what I know, this should be already fixed on master. Nonetheless, thanks a lot for your contribution. |
FIX:
on first run
docker-compose up