We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 140fe6a commit d77d281Copy full SHA for d77d281
.dockerignore
@@ -0,0 +1,2 @@
1
+bin
2
+obj
samples/EchoServer/Dockerfile
@@ -0,0 +1,17 @@
+FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
+WORKDIR /app
3
+
4
+COPY . ./
5
+WORKDIR /app/samples/EchoServer
6
7
+RUN dotnet publish -c Release -o /app/out -f net8.0
8
9
10
+# Build runtime image
11
+FROM mcr.microsoft.com/dotnet/aspnet:8.0
12
13
14
+COPY --from=build-env /app/out .
15
16
+ENV ASPNETCORE_URLS http://*:5000
17
+ENTRYPOINT ["dotnet", "EchoServer.dll"]
0 commit comments