aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.debian_package
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2018-12-14 21:21:48 -0500
committerAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2018-12-14 21:21:48 -0500
commita73d255f51f135adbc2c352fef79f776ce9fcb02 (patch)
treedd6a198e3c104ebc732a615153c4bb5514e25660 /Dockerfile.debian_package
parent72f7e7b9541310e4b49f4fc324eab482c8d97dcf (diff)
Enable self-contained binary mode (#160)
* Build self-contained Debian linux-x64 binary * Update initscripts to use self-contained binary The binary is declared in the units intentionally rather than using the variable extrapolation from before, to avoid confusion since these can't really be moved reasonably. * With combined binary name, use pgrep instead * Remove dotnet-runtime dependency * Move the compiled scb to usr/bin * Update binary location for upstart/systemd * Move binary path; fix pidfile handling * Entirely remove the temporary usr/ dir * Don't move the compiled binary * Create /usr/bin symlink * Use the variable here * Update architecture to any * Add libcurl4-openssl build dependency * Update the build Dockerfile to install builddeps
Diffstat (limited to 'Dockerfile.debian_package')
-rw-r--r--Dockerfile.debian_package8
1 files changed, 4 insertions, 4 deletions
diff --git a/Dockerfile.debian_package b/Dockerfile.debian_package
index 31505b978..c5c631b71 100644
--- a/Dockerfile.debian_package
+++ b/Dockerfile.debian_package
@@ -2,20 +2,20 @@ FROM debian:9
# https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
RUN apt-get update \
- && apt-get install -y apt-transport-https debhelper gnupg wget \
+ && apt-get install -y apt-transport-https debhelper gnupg wget devscripts \
&& wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg \
&& mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ \
&& wget -q https://packages.microsoft.com/config/debian/9/prod.list \
&& mv prod.list /etc/apt/sources.list.d/microsoft-prod.list \
&& chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg \
&& chown root:root /etc/apt/sources.list.d/microsoft-prod.list \
- && apt-get update \
- && apt-get install -y dotnet-sdk-2.2
+ && apt-get update
WORKDIR /repo
COPY . .
-RUN dpkg-buildpackage -us -uc \
+RUN yes|mk-build-deps -i \
+ && dpkg-buildpackage -us -uc \
&& mkdir /dist \
&& mv /jellyfin*deb /dist