aboutsummaryrefslogtreecommitdiff
path: root/deployment/Dockerfile.docker.amd64
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2020-06-24 14:16:02 +0100
committerGitHub <noreply@github.com>2020-06-24 14:16:02 +0100
commit2486e480976d836e9b65c9bd986a0661c3c0229b (patch)
treecb406ee0172bd4620cfae930f2e798a0e54653e7 /deployment/Dockerfile.docker.amd64
parentb5586e64f5d815f4449930dc53a61a676d0e2df4 (diff)
parent92091f13d3da982e6fd4465101b8e58220c457e4 (diff)
Merge pull request #30 from jellyfin/master
Updating master
Diffstat (limited to 'deployment/Dockerfile.docker.amd64')
-rw-r--r--deployment/Dockerfile.docker.amd6415
1 files changed, 15 insertions, 0 deletions
diff --git a/deployment/Dockerfile.docker.amd64 b/deployment/Dockerfile.docker.amd64
new file mode 100644
index 0000000000..204ded3a49
--- /dev/null
+++ b/deployment/Dockerfile.docker.amd64
@@ -0,0 +1,15 @@
+ARG DOTNET_VERSION=3.1
+
+FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION}-buster
+
+ARG SOURCE_DIR=/src
+ARG ARTIFACT_DIR=/jellyfin
+
+WORKDIR ${SOURCE_DIR}
+COPY . .
+
+ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
+
+# because of changes in docker and systemd we need to not build in parallel at the moment
+# see https://success.docker.com/article/how-to-reserve-resource-temporarily-unavailable-errors-due-to-tasksmax-setting
+RUN dotnet publish Jellyfin.Server --disable-parallel --configuration Release --output="${ARTIFACT_DIR}" --self-contained --runtime linux-x64 "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none"