tcc/ASP.NET/Dockerfile

20 lines
363 B
Docker
Raw Normal View History

2023-08-23 14:01:09 +00:00
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 .
2023-08-23 14:16:36 +00:00
ENTRYPOINT ["dotnet", "/App/TCC.APP.dll"]