feat: add docker support
This commit is contained in:
1 parent
4eef7af9db
commit
f9a96e48cc
3 files changed
+46
No files matched your search
@@ -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"]
|
||||
Reference in new issue
Block a user