dockerSupport: Added Basic Docker support to the application.
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY *.csproj ./
|
||||
RUN dotnet restore
|
||||
|
||||
COPY . ./
|
||||
RUN dotnet publish -c Release -o out
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
|
||||
WORKDIR /app
|
||||
RUN mkdir -p /app/data
|
||||
COPY --from=build-env /app/out .
|
||||
|
||||
ENTRYPOINT [ "dotnet", "CarCareTracker.dll" ]
|
||||
Reference in New Issue
Block a user