2021-03-05 23:15:45 +00:00
|
|
|
FROM ubuntu:focal AS builder
|
2019-07-14 19:35:16 +00:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2019-12-25 10:50:25 +00:00
|
|
|
ENV MONO_VERSION 5.18
|
2019-07-14 19:35:16 +00:00
|
|
|
|
2021-03-05 23:15:45 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y -o Dpkg::Options::="--force-confold" install --no-install-recommends \
|
|
|
|
apt-transport-https \
|
|
|
|
wget dirmngr gpg gpg-agent \
|
|
|
|
# add-apt-repository for PPAs
|
|
|
|
software-properties-common && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2019-07-14 19:35:16 +00:00
|
|
|
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
|
2021-03-05 23:15:45 +00:00
|
|
|
echo "deb http://download.mono-project.com/repo/debian stable-focal main" > /etc/apt/sources.list.d/mono-official-stable.list && \
|
2019-07-14 19:35:16 +00:00
|
|
|
apt-get update && apt-get install -y \
|
|
|
|
devscripts build-essential tofrodos \
|
|
|
|
dh-make dh-systemd \
|
|
|
|
cli-common-dev \
|
|
|
|
mono-complete \
|
2021-03-05 23:15:45 +00:00
|
|
|
sqlite3 libcurl4 mediainfo
|
|
|
|
RUN apt-get upgrade -y
|
2019-07-14 19:35:16 +00:00
|
|
|
|
|
|
|
RUN apt-cache policy mono-complete
|
|
|
|
RUN apt-cache policy cli-common-dev
|
|
|
|
|
|
|
|
COPY debian-start.sh /debian-start.sh
|
|
|
|
RUN fromdos /debian-start.sh
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
VOLUME [ "/data/sonarr_bin", "/data/build", "/data/output" ]
|
|
|
|
CMD /debian-start.sh
|