mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Revert Dockerfile to multi-stage build
Signed-off-by: Ske <voltasalt@gmail.com>
This commit is contained in:
parent
08a863d411
commit
6a3d9b9426
1 changed files with 6 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:5.0
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
||||
WORKDIR /app
|
||||
|
||||
# Restore/fetch dependencies excluding app code to make use of caching
|
||||
|
|
@ -14,7 +14,11 @@ RUN dotnet restore PluralKit.sln
|
|||
COPY . /app
|
||||
RUN dotnet build -c Release -o bin
|
||||
|
||||
# Run :)
|
||||
# Build runtime stage (doesn't include SDK)
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0
|
||||
WORKDIR /app
|
||||
COPY --from=build /app ./
|
||||
|
||||
# Allow overriding CMD from eg. docker-compose to run API layer too
|
||||
ENTRYPOINT ["dotnet"]
|
||||
CMD ["bin/PluralKit.Bot.dll"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue