You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/docker/Dockerfile

32 lines
740 B

FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine as base
FROM base AS base-arm
ENV RUNTIME=linux-musl-arm
FROM base AS base-arm64
ENV RUNTIME=linux-musl-arm64
FROM base AS base-amd64
ENV RUNTIME=linux-musl-x64
FROM base-$TARGETARCH AS final
# Required by environment and/or dotnet
ENV PATH="${PATH}:/app/recyclarr" \
RECYCLARR_APP_DATA=/config \
CRON_SCHEDULE="@daily" \
RECYCLARR_CREATE_CONFIG=false \
COMPlus_EnableDiagnostics=0
RUN set -ex; \
apk add --no-cache bash tzdata supercronic git tini; \
mkdir -p /config && chown 1000:1000 /config;
COPY ./artifacts/$RUNTIME /app/recyclarr/
COPY --chmod=555 ./scripts/prod/*.sh /
USER 1000:1000
VOLUME /config
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]