R
Railway14mo ago
Draq

.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
Percy
Percy14mo ago
Project ID: 7687316d-85cc-4512-962b-09d05cfe0cfa
Draq
Draq14mo ago
Project ID: 7687316d-85cc-4512-962b-09d05cfe0cfa
Brody
Brody14mo ago
@aleks have any ideas?
root
root14mo ago
Try adding a WORKDIR /app between lines 18 and 19.
Draq
Draq14mo ago
ok, i'll check that
Want results from more Discord servers?
Add your server