Skip to content

Commit 526c3e4

Browse files
Fix Dockerfile
1 parent f9caefc commit 526c3e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ WORKDIR /source
33

44
# copy csproj and restore as distinct layers
55
COPY . .
6-
RUN dotnet restore "ModelCompiler.sln"
6+
RUN dotnet restore "Opc.Ua.ModelCompiler.Tool\Opc.Ua.ModelCompiler.Tool.csproj"
77

88
# copy and publish app and libraries
99
COPY . .
10-
RUN dotnet publish "ModelCompiler.sln" -f net9.0 -c Docker -o /app
10+
RUN dotnet publish "Opc.Ua.ModelCompiler.Tool\Opc.Ua.ModelCompiler.Tool.csproj" -f net9.0 -c Docker -o /app
1111

1212
# final stage/image
1313
FROM mcr.microsoft.com/dotnet/runtime:9.0
1414
WORKDIR /app
1515
COPY --from=build /app .
16-
ENTRYPOINT ["dotnet", "/app/Opc.Ua.ModelCompiler.dll"]
16+
ENTRYPOINT ["/app/Opc.Ua.ModelCompiler"]

0 commit comments

Comments
 (0)