2 months ago
Hello Railway team,
I am trying to deploy my ASP.NET 8 Minimal API project to Railway, but the build fails with the following error:
failed to calculate checksum ... "/NovoldinoChatBot.csproj": not found
Repo structure:
NovoldinoChatbot/ <- root repository
NovoldinoChatBot/ <- project folder
Dockerfile
NovoldinoChatBot.csproj
Program.cs
NovoldinoChatbot.sln
railway.toml
Problem:
The Docker build context on Railway does not recognize .csproj inside the NovoldinoChatBot/ subfolder. As a result, the COPY command in my Dockerfile fails:
COPY ["NovoldinoChatBot/NovoldinoChatBot.csproj", "./"]
This prevents Railway from building the project.
Steps I have tried:
Using
railway.tomlwithbuilder = "DOCKERFILE"anddockerfilePath = "NovoldinoChatBot/Dockerfile"Using Metal Builder
Verified the
.csprojexists in the repo and builds locally in Visual Studio
3 Replies
2 months ago
Your log clearly indicates that it is not copying from your project folder. Are you sure you have committed your Dockerfile? (By which I mean, the version with the correct pathing)
2 months ago
Also, can you run this command locally to see if it is reproducible on your machine?docker build -f NovoldinoChatBot/Dockerfile .
2 months ago
Hi thaumanovic,
Thanks a lot for your advice! Running the Docker build locally exactly as you suggested helped me understand the issue and got me unstuck. I really appreciate you taking the time to guide me - it made a big difference! 
