Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
beertje44 committed Jan 26, 2025
1 parent ab2d79c commit 0af60c2
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -132,33 +132,7 @@ RUN \
-e "s|^InterDir=.*|InterDir=$\{MainDir\}/intermediate|g" \
-e "s|^LogFile=.*|LogFile=$\{MainDir\}/nzbget.log|g" \
-e "s|^AuthorizedIP=.*|AuthorizedIP=127.0.0.1|g" \
/app/nzbget/share/nzbget/nzbget.conf && \
mv /app/nzbget/share/nzbget/webui /app/nzbget/ && \
cp /app/nzbget/share/nzbget/nzbget.conf /app/nzbget/webui/nzbget.conf.template && \
ln -s /usr/bin/7z /app/nzbget/7za && \
ln -s /usr/bin/unrar /app/nzbget/unrar && \
cp /nzbget/pubkey.pem /app/nzbget/pubkey.pem && \
curl -o /app/nzbget/cacert.pem -L "https://curl.se/ca/cacert.pem" && \
echo "**** install unrar7 from source ****" && \
mkdir /tmp/unrar7 && \
curl -o /tmp/unrar7.tar.gz -L "https://www.rarlab.com/rar/unrarsrc-${UNRAR7_VERSION}.tar.gz" && \
tar xf /tmp/unrar7.tar.gz -C /tmp/unrar7 --strip-components=1 && \
cd /tmp/unrar7 && \
if [ "${UNRAR7_NATIVE}" != "true" ] && [ "${TARGETPLATFORM}" == "linux/amd64" ]; \
then sed -i "s|CXXFLAGS=-march=native|CXXFLAGS=-march=x86-64-v2|" makefile; fi && \
if [ "${UNRAR7_NATIVE}" != "true" ] && [ "${TARGETPLATFORM}" == "linux/arm64" ]; \
then sed -i "s|CXXFLAGS=-march=native|CXXFLAGS=-march=armv8-a+crypto+crc|" makefile; fi && \
if [ "${UNRAR7_NATIVE}" != "true" ] && [ "${TARGETPLATFORM}" == "linux/arm/v7" ]; \
then sed -i "s|CXXFLAGS=-march=native|CXXFLAGS=-march=armv7-a|" makefile; fi && \
make -j ${MAKE_JOBS} && \
install -v -m755 unrar /usr/bin/unrar7 && \
echo "**** install unrar6 from source ****" && \
mkdir /tmp/unrar6 && \
curl -o /tmp/unrar6.tar.gz -L "https://www.rarlab.com/rar/unrarsrc-${UNRAR6_VERSION}.tar.gz" && \
tar xf /tmp/unrar6.tar.gz -C /tmp/unrar6 --strip-components=1 && \
cd /tmp/unrar6 && \
make -j ${MAKE_JOBS} && \
install -v -m755 unrar /usr/bin/
/app/nzbget/share/nzbget/nzbget.conf

# runtime stage
FROM alpine:3.19.1
Expand Down

0 comments on commit 0af60c2

Please sign in to comment.