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
743 B

FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build
WORKDIR /build
ARG TARGETPLATFORM
RUN apk add unzip bash
COPY --chmod=544 ./scripts/build/*.sh .
COPY ./artifacts ./artifacts
RUN ./build.sh
#############################################################################
FROM mcr.microsoft.com/dotnet/runtime:7.0-alpine AS final
# Required by environment and/or dotnet
ENV PATH="${PATH}:/app/recyclarr" \
RECYCLARR_APP_DATA=/config \
CRON_SCHEDULE="@daily"
RUN set -ex; \
apk add --no-cache bash tzdata supercronic git; \
mkdir -p /config && chown 1000:1000 /config;
COPY --from=build /build/publish /app/recyclarr/
COPY --chmod=555 ./scripts/prod/*.sh /
USER 1000:1000
VOLUME /config
ENTRYPOINT ["/entrypoint.sh"]