Skip to content

Commit

Permalink
Readd Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Plerx2493 committed Feb 2, 2024
1 parent f1647ed commit fb3cc18
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ModularAssistentForDiscordServer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# BUILD
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
WORKDIR /src
COPY ./ModularAssistentForDiscordServer ./
RUN dotnet restore
RUN dotnet publish -c Release -o out

# RUNNER IMAGE
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
WORKDIR /app
COPY --from=build /src/out .
WORKDIR /config

ENTRYPOINT ["dotnet", "/app/ModularAssistentForDiscordServer.dll"]

0 comments on commit fb3cc18

Please sign in to comment.