Added plugin loading. Added health check

This commit is contained in:
2026-02-13 09:24:14 +01:00
parent a4c59b23db
commit 956c1515f3
4 changed files with 26 additions and 2 deletions

View File

@@ -28,7 +28,9 @@ RUN git clone -b $GIT_BRANCH --single-branch $GIT_REPOSITORY .
WORKDIR /src
RUN mkdir -p "/output" && echo -n $GIT_BRANCH > /output/version
# TODO: Implement plugin loading here
# Copy over plugin configuration
COPY Api.props /src/Hosts/Moonlight.Api.Host/
COPY Frontend.props /src/Hosts/Moonlight.Frontend.Host/
# Install npm packages
WORKDIR /src/Hosts/Moonlight.Frontend.Host/Styles
@@ -64,7 +66,7 @@ RUN dotnet publish --no-restore "./Moonlight.Frontend.Host.csproj" -c $BUILD_CON
#
# Construct final docker image
#
FROM cgr.dev/chainguard/aspnet-runtime:latest AS final
FROM git.battlestati.one/moonlight-panel/app_base:moonlight AS final
WORKDIR /app
@@ -72,4 +74,6 @@ COPY --from=publish /output/publish-api .
COPY --from=publish /output/publish-frontend/wwwroot ./wwwroot
COPY --from=publish /output/version .
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 CMD ["/usr/bin/curl", "-sf", "-o", "/dev/null", "http://localhost:8080/"]
ENTRYPOINT ["dotnet", "Moonlight.Api.Host.dll"]