This commit is contained in:
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
|
COPY . /app
|
||||||
|
WORKDIR /app
|
||||||
|
RUN dotnet publish Program.cs -c Release -o /app/published
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /app/published .
|
||||||
|
CMD ["dotnet", "Program.dll"]
|
||||||
Reference in New Issue
Block a user