-
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
WSL2 - Docker can't build PHP container #454
Comments
After the clone of repo, you should run composer install to generate this file (composer.lock) and to download the project Dependencies, But Note, you should run composer with php version 7.3. For example good luck! |
But why isn't there a composer.lock to begin with? Shouldn't it be part of this repo? In older Sylius Versions it used to be there |
Am having the same problem. I would have expected to run composer install from inside the container. Is it true that this should be done from outside? |
I'm getting the same error. This is due to these lines in Dockerfile:
Before running composer install, it is expecting that composer.lock file is already there, so it should be included in the repository. Currently this file is excluded through .gitignore, but there is a pull request (#505) to include it again, as requested in issue #503. Running composer install, as proposed by @achref-riahi , produces this warning message: So in this way it does an Anyway, if you exclude composer.lock from copying, Docker will build the image succesfully. |
This error also appears when following the install instructions provided here: https://sylius.com/download/ in the "How to install with Docker" section
So in order to build the image you need to run Yes, you could manually fiddle with the Dockerfile, remove |
The proposition of fix in #559 |
Should be fixed on master in #536 |
Hi, I am trying to install Sylius via Docker on WSL2 and I am receiving following error while building PHP container
ERROR: Service 'php' failed to build : COPY failed: stat /var/lib/docker/tmp/docker-builder139509019/composer.lock: no such file or directory
The text was updated successfully, but these errors were encountered: