You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Docker build fails from source. There's some discrepancies between the project and the current Dockerfile. Note: I notice the Docker documentation is out of date.
To Reproduce
Clone the repo, and start the compose as instructed in the docs.
Expected behavior
Image builds successfully and container starts.
Desktop (please complete the following information):
OS: Debian 13 Trixie
Using docker: yes
Version: N/A
Additional context
There's three steps I've done to make the container start successfully.
The Dockerfile installs dotnet6-sdk via apk, but the project targets net10.0 (.NET 6 is EOL #112 ), so it fails immediately with NETSDK1045. To fix it I used mcr.microsoft.com/dotnet/sdk:10.0-alpine as the build stage base instead of apk add dotnet6-sdk.
After fixing the SDK, publish failed while generating docs/openapi.json. Adding -p:OpenApiGenerateDocumentsOnBuild=false to the dotnet publish command skips that step and lets the build continue.
Publish then failed with NETSDK1004 because Sockseek.HelpGenerator's assets file wasn't found. Running dotnet restore on the full solution before the publish step fixed it.
With all three changes the build completes and the container runs fine.
Activity
Merge pull request #209 from Zweisteinium/fix/docker-build-net10
fix fiso64#203 docker build from source for .NET 10