mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Tissue service will sanitize the existign database of ingested torrents by matching existing titles with new banned word lists. Now with added kleenex
18 lines
510 B
Docker
18 lines
510 B
Docker
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
|
|
ARG TARGETARCH
|
|
WORKDIR /App
|
|
COPY . ./
|
|
RUN dotnet restore -a $TARGETARCH
|
|
RUN dotnet publish -c Release --no-restore -o out -a $TARGETARCH
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
|
|
|
|
WORKDIR /App
|
|
COPY --from=build /App/out .
|
|
RUN addgroup -S tissue && adduser -S -G tissue tissue
|
|
USER tissue
|
|
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
|
CMD pgrep -f dotnet || exit 1
|
|
ENTRYPOINT ["dotnet", "Tissue.dll"]
|