aboutsummaryrefslogtreecommitdiff
path: root/deployment/Dockerfile.docker.amd64
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-06-23 12:12:31 -0400
committerGitHub <noreply@github.com>2020-06-23 12:12:31 -0400
commitfe1c80668cafa36fb0376ade0519d5b6d3d76d9b (patch)
tree95fff63d25a34cfdf32529a6377258d8d20fbdc0 /deployment/Dockerfile.docker.amd64
parent7481c3500a968782a8c3be29b448fdf47df2e41a (diff)
parent2506feb5449e9f10170557357f8bc0000b0da904 (diff)
Merge pull request #3386 from jellyfin/azure-ci
Add Azure DevOps package builds
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"