Skip to content

Commit 5add793

Browse files
committed
tobyash86#16: update scripts for net5.0 builds
1 parent d506c07 commit 5add793

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/WebGoatCore/bin/Debug/netcoreapp3.0/WebGoatCore.dll",
13+
"program": "${workspaceFolder}/WebGoatCore/bin/Debug/net5.0/WebGoatCore.dll",
1414
"args": [],
1515
"cwd": "${workspaceFolder}/WebGoatCore",
1616
"stopAtEntry": false,

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://hub.docker.com/_/microsoft-dotnet-core
2-
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
2+
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
33
WORKDIR ./sources
44

55
# copy everything else and build app
@@ -8,7 +8,7 @@ WORKDIR ./sources/WebGoatCore
88
RUN dotnet publish -c release -o /app
99

1010
# final stage/image
11-
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
11+
FROM mcr.microsoft.com/dotnet/aspnet:5.0
1212
WORKDIR /app
1313
COPY --from=build /app ./
1414
ENTRYPOINT ["dotnet", "WebGoatCore.dll"]

0 commit comments

Comments
 (0)