Skip to content
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

[3.0.10] caddy build failed : package crypto/ecdh is not in GOROOT #2452

Closed
CugeDe opened this issue May 23, 2023 · 3 comments
Closed

[3.0.10] caddy build failed : package crypto/ecdh is not in GOROOT #2452

CugeDe opened this issue May 23, 2023 · 3 comments

Comments

@CugeDe
Copy link

CugeDe commented May 23, 2023

API Platform version(s) affected: 3.0.10

Description
Unable to use the provided Dockerfile to build caddy service.

During the caddy image build (builder), an error occurs and seems to be linked to the latest stable version of caddy.

crypto/ecdh: Package crypto/ecdh is not in GOROOT

How to reproduce
Just get the 3.0.10 release of API-Platform and docker compose build.

Possible Solution
As a workaround, I just used the 2.7-builder-alpine tag for caddy build and 2.7-alpine for caddy runner.

@toby-griffiths
Copy link
Contributor

I've also just experienced this issue. Thanks for the workaround, @CugeDe. This worked for me.

@dunglas
Copy link
Member

dunglas commented May 23, 2023

Fixed by #2453.

You'll have to apply this patch manually in your projet as long a long term solution hasn't been found (see caddyserver/caddy-docker#298).

@dunglas
Copy link
Member

dunglas commented Aug 3, 2023

We now have a better fix. Please si dunglas/symfony-docker#434 (comment) and https://dunglas.dev/2023/08/6x-faster-docker-builds-for-symfony-and-api-platform-projects/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants