dockerSupport: Added Basic Docker support to the application.

This commit is contained in:
Jonathon Chambers
2024-01-06 10:42:14 -05:00
parent 1c2368f5a1
commit 71c2e64daf
11 changed files with 34 additions and 7 deletions

16
Dockerfile Normal file
View 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" ]