Fix Dockerfile
This commit is contained in:
parent
882d7934e5
commit
418fa7e895
10
Dockerfile
10
Dockerfile
@ -24,7 +24,7 @@ RUN apt-get update && \
|
||||
# Add Mono repo key
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
|
||||
# Add Mono repo
|
||||
&& echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list \
|
||||
&& echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list \
|
||||
# Mediainfo repo install
|
||||
&& curl -O https://mediaarea.net/repo/deb/repo-mediaarea_1.0-20_all.deb \
|
||||
&& dpkg -i repo-mediaarea_1.0-20_all.deb \
|
||||
@ -42,16 +42,16 @@ RUN mkdir -p /app/bin \
|
||||
&& mkdir /config \
|
||||
&& curl -fsSL "https://download.sonarr.tv/v3/main/${SONARR_VERSION}/Sonarr.main.${SONARR_VERSION}.linux.tar.gz" | tar xzf - -C /app/bin --strip-components=1 \
|
||||
&& rm -rf /app/bin/Sonarr.Update \
|
||||
&& echo -e "PackageVersion=${SONARR_VERSION}\nPackageAuthor=Michael\nUpdateMethod=Docker\nBranch=Main" > "/app/package_info" && \
|
||||
&& chmod -R u=rwX,go=rX /app
|
||||
&& echo -e "PackageVersion=${SONARR_VERSION}\nPackageAuthor=Michael\nUpdateMethod=Docker\nBranch=main" > "/app/package_info" \
|
||||
&& chmod -R u=rwX,go=rX /app \
|
||||
&& chown -R sonarr /app \
|
||||
&& chown -R sonarr /config \
|
||||
&& chown -R sonarr /config
|
||||
# Set startup conditions
|
||||
VOLUME /config
|
||||
EXPOSE 8989
|
||||
USER sonarr
|
||||
WORKDIR /app
|
||||
ENTRYPOINT ["mono", "/app/bin/Sonarr.exe"]
|
||||
ENTRYPOINT ["mono", "--debug", "/app/bin/Sonarr.exe"]
|
||||
CMD ["--nobrowser", "--data=/config"]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user