.net7 restore error while deploying
Hi guys,
I'm trying to deploy app in .net 7
Can you please hint me, how can i solve problem of keep receiving error:
"ERROR: failed to solve: process "/bin/bash -ol pipefail -c dotnet restore" did not complete successfully: exit code: 1"
Docker suggest me to line 19 but i mine docker file 19 line is empty.
Dockerfile:19
17 | # install phase
18 | COPY . /app/.
19 | >>> RUN dotnet restore
20 |
21 | # build phase
Error: Docker build failed
MS build error (like below) suggest i have wrong path to projects set? My Docker config work locally but not when i'm deploying, so locally paths are set correctly..
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
My railway.toml config is:
[build]
builder = "dockerfile"
dockerfilePath = "./MyApp/Server/Dockerfile"
[deploy]
startCommand = "dotnet MyApp.Server.dll"
restartPolicyType = "never"
5 Replies