adicionando pasta para ASP.NET

This commit is contained in:
2023-08-23 11:01:09 -03:00
parent 2390f8fb8d
commit 6f6a77f897
14 changed files with 32 additions and 13 deletions

20
ASP.NET/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
WORKDIR /App
# Copy everything
COPY * .
# Restore as distinct layers
RUN dotnet restore
# Build a release
RUN dotnet build -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine
WORKDIR /App
COPY --from=build-env /App/out .
ENTRYPOINT ["dotnet", "TCC.APP.dll"]