Files
docker-nzbhydra2/Dockerfile.armhf
T

48 lines
1.4 KiB
Docker
Raw Normal View History

2022-05-03 13:36:22 +01:00
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-jammy
2019-01-09 00:07:15 -08:00
# set version label
ARG BUILD_DATE
ARG VERSION
2020-02-12 11:19:29 -06:00
ARG NZBHYDRA2_RELEASE
2019-01-09 00:07:15 -08:00
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
2020-01-03 13:22:25 -06:00
LABEL maintainer="nemchik"
2019-01-09 00:07:15 -08:00
# environment settings
2022-05-03 13:36:22 +01:00
ARG DEBIAN_FRONTEND="noninteractive"
2020-05-01 09:51:43 -05:00
ENV NZBHYDRA2_RELEASE_TYPE="Release"
2019-01-09 00:07:15 -08:00
RUN \
2022-04-18 21:41:45 +01:00
echo "**** install packages ****" && \
2022-05-03 13:36:22 +01:00
apt-get update && \
apt-get install --no-install-recommends -y \
2022-04-18 21:41:45 +01:00
curl \
jq \
2022-05-03 13:36:22 +01:00
openjdk-11-jre-headless \
python3 \
unzip && \
2022-04-18 21:41:45 +01:00
echo "**** install nzbhydra2 ****" && \
if [ -z ${NZBHYDRA2_RELEASE+x} ]; then \
2022-05-03 13:36:22 +01:00
NZBHYDRA2_RELEASE=$(curl -sX GET "https://api.github.com/repos/theotherp/nzbhydra2/releases/latest" \
| jq -r .tag_name); \
2022-04-18 21:41:45 +01:00
fi && \
NZBHYDRA2_VER=${NZBHYDRA2_RELEASE#v} && \
curl -o \
2022-05-03 13:36:22 +01:00
/tmp/nzbhydra2.zip -L \
2022-04-18 21:41:45 +01:00
"https://github.com/theotherp/nzbhydra2/releases/download/v${NZBHYDRA2_VER}/nzbhydra2-${NZBHYDRA2_VER}-linux.zip" && \
mkdir -p /app/nzbhydra2/bin && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2/bin && \
chmod +x /app/nzbhydra2/bin/nzbhydra2wrapperPy3.py && \
2022-05-03 13:36:22 +01:00
echo "ReleaseType=${NZBHYDRA2_RELEASE_TYPE}\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/nzbhydra2/package_info && \
2022-04-18 21:41:45 +01:00
echo "**** cleanup ****" && \
rm -rf \
2022-05-03 13:36:22 +01:00
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
2019-01-09 00:07:15 -08:00
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 5076
2020-01-03 13:22:25 -06:00
VOLUME /config