chore: add workflow for deploying bot

This commit is contained in:
Stevan Freeborn
2025-05-24 10:53:55 -05:00
parent 2ea23144df
commit 30d2346e10
4 changed files with 93 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
**/.dockerignore
**/.env
**/.project
**/.settings
**/.vs
**/.vscode
**/*.*proj.user
**/logs
**/bin
**/Dockerfile*
**/obj
.env*
**/appsettings*.json
+13
View File
@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS base
WORKDIR /app
COPY *.csproj ./
RUN dotnet restore
COPY . .
FROM base AS publish-stage
RUN dotnet publish -c Release -o dist
FROM mcr.microsoft.com/dotnet/runtime:9.0
WORKDIR /app
COPY --from=publish-stage /app/dist ./
ENTRYPOINT ["dotnet", "StevesBot.Worker.dll"]