Error when generating Dockerfile
See original GitHub issueDescribe the problem/bug
When executing the build.sh
file an error emerges that does not let me create the Dockerimage
.
Additional information I have tried to run it with the following .NET versions:
- 2.1
- 2.2
- 3.1
Logs (if applicable)
/usr/local/share/dotnet/sdk/2.1.804/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: El SDK de .NET actual no admite el destino .NET Core 3.1. Use el destino .NET Core 2.1 u otro inferior, o bien una versión del SDK de .NET que admita .NET Core 3.1. [/Users/sokardys/workspace/rookielabs/btcpayserver/BTCPayServer.Data/BTCPayServer.Data.csproj]
To Reproduce Steps to reproduce the behavior:
- Clone the repo
- Run the
build.sh
file - See error
Expected behavior
Dockerimage
is generated without errors.
Actual behavior
It pops up an error. No Dockerimage
is generated
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
An error occurs when building docker image from Dockerfile
1 Answer. I found the solution. There is a bug or smth in the docker dotnet environment. It just doesn't work with ImplicitUsings...
Read more >Docker error while creating container from application ...
I have created a docker base image with my dependencies needed to run my application like Java, Python, VC++ and dotnet.
Read more >'docker build' error: "failed to solve with frontend dockerfile. ...
I was having the "failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error...
Read more >Docker: “build” Requires 1 Argument Error
In this section, first, we'll create a sample Dockerfile to reproduce the error and then use different approaches to resolve it.
Read more >Docker Create Dockerfile error message
I am currently working on a project involving docker at work. I used a Dockerfile and tried the syntax of yours and it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For example:
You can check the relevant dockerfile directly to see how to build each image in details outside of docker if you need to.
On the check and cross marks we link to each dockerfile on https://github.com/btcpayserver/btcpayserver-docker#support
Build.sh does not create a docker image.
docker build -f amd64.Dockerfile .
is all it takes. No dependency on dotnet either when doing this.