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.
38 lines
1.1 KiB
38 lines
1.1 KiB
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
|
|
|
|
WORKDIR /build
|
|
|
|
ARG RELEASE_TAG=latest
|
|
ARG TARGETPLATFORM
|
|
ARG REPOSITORY=recyclarr/recyclarr
|
|
ARG BUILD_FROM_BRANCH
|
|
|
|
COPY --chmod=544 ./scripts/build/*.sh .
|
|
|
|
RUN apk add unzip
|
|
RUN ./build.sh
|
|
|
|
#############################################################################
|
|
FROM alpine AS final
|
|
|
|
# Required by environment and/or dotnet
|
|
ENV RECYCLARR_APP_DATA=/config \
|
|
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/tmp/.net \
|
|
# Environment variables used by the entrypoint script. These may be overridden from `docker run`
|
|
# as needed.
|
|
CRON_SCHEDULE="@daily" \
|
|
# The GLOBALIZATION variable is so that we do not need libicu installed (saves us ~40MB).
|
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true \
|
|
# User can specify their own UID/GID for the 'recyclarr' user if they want
|
|
PUID=1000 \
|
|
PGID=1000
|
|
|
|
VOLUME /config
|
|
|
|
RUN apk add --no-cache busybox-suid su-exec libstdc++ tzdata;
|
|
|
|
COPY --chmod=755 --from=build /build/recyclarr /usr/local/bin
|
|
COPY --chmod=755 ./scripts/prod/*.sh /
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|