feat: add docker support

This commit is contained in:
Stevan Freeborn
2024-09-02 20:19:56 -05:00
parent 4eef7af9db
commit f9a96e48cc
3 changed files with 46 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS base
WORKDIR /app
COPY *.csproj ./
RUN dotnet restore
COPY . .
FROM base AS build-stage
RUN dotnet publish -c Release -o dist
FROM mcr.microsoft.com/dotnet/runtime:8.0
WORKDIR /app
COPY --from=build-stage /app/dist ./
ENTRYPOINT ["dotnet", "SanctionsSearch.Worker.dll"]