44 lines
1.1 KiB
Docker
44 lines
1.1 KiB
Docker
|
# hadolint ignore=DL3007
|
||
|
FROM ghcr.io/truecharts/ubuntu:latest
|
||
|
|
||
|
ARG VERSION
|
||
|
|
||
|
USER root
|
||
|
|
||
|
# hadolint ignore=DL3008,DL3015,SC2086
|
||
|
RUN \
|
||
|
apt-get -qq update \
|
||
|
&& \
|
||
|
apt-get -qq install -y \
|
||
|
libicu66 \
|
||
|
&& \
|
||
|
curl -fsSL -o /tmp/readarr.tar.gz \
|
||
|
"https://readarr.servarr.com/v1/update/nightly/updatefile?version=${VERSION}&os=linux&runtime=netcore&arch=x64" \
|
||
|
&& tar ixzf /tmp/readarr.tar.gz -C /app --strip-components 1 \
|
||
|
&& \
|
||
|
rm -rf \
|
||
|
/app/readarr.Update* \
|
||
|
&& \
|
||
|
printf "UpdateMethod=docker\nBranch=nightly\nPackageVersion=%s\nPackageAuthor=[TrueCharts Project](https://truecharts.org)" "${VERSION}" > /app/package_info \
|
||
|
&& \
|
||
|
apt-get autoremove -y \
|
||
|
&& apt-get clean \
|
||
|
&& \
|
||
|
rm -rf \
|
||
|
/tmp/* \
|
||
|
/var/lib/apt/lists/* \
|
||
|
/var/tmp/ \
|
||
|
&& chmod -R u=rwX,go=rX /app \
|
||
|
&& printf "umask %d" "${UMASK}" >> /etc/bash.bashrc \
|
||
|
&& update-ca-certificates
|
||
|
|
||
|
USER apps
|
||
|
|
||
|
EXPOSE 8787
|
||
|
|
||
|
COPY ./.containers/apps/readarr/entrypoint.sh /entrypoint.sh
|
||
|
CMD ["/entrypoint.sh"]
|
||
|
|
||
|
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
|
||
|
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/apps"
|