Project
This commit is contained in:
15
HealtRegistry/Containerfile
Normal file
15
HealtRegistry/Containerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
|
||||
WORKDIR /build
|
||||
|
||||
# Copy everything
|
||||
COPY . ./
|
||||
# Restore as distinct layers
|
||||
RUN dotnet restore
|
||||
# Build and publish a release
|
||||
RUN dotnet publish -c Release -o out
|
||||
|
||||
# Build runtime image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /build/out .
|
||||
ENTRYPOINT ["dotnet", "HealtRegistry.dll"]
|
||||
Reference in New Issue
Block a user