mirror of
https://github.com/ivanch/tcc.git
synced 2025-08-25 15:21:49 +00:00
adicionando pasta para ASP.NET
This commit is contained in:
20
ASP.NET/Dockerfile
Normal file
20
ASP.NET/Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user