feat: add Nomad run script

This commit is contained in:
spiral
2022-04-10 10:57:51 -04:00
parent 9314ce672a
commit 8e5b987b2c
3 changed files with 21 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /app
# Restore/fetch dependencies excluding app code to make use of caching
@@ -24,6 +25,10 @@ LABEL org.opencontainers.image.source = "https://github.com/xSke/PluralKit"
WORKDIR /app
COPY --from=build /app ./
# Runtime dependency in prod
RUN apt update && apt install -y curl
ADD scripts/run-clustered.sh /
# Allow overriding CMD from eg. docker-compose to run API layer too
ENTRYPOINT ["dotnet"]
CMD ["bin/PluralKit.Bot.dll"]