From d9ab654abe6a6790ecb946894dac0c4fc863227b Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Sat, 16 Feb 2019 01:37:55 -0500 Subject: Enhance Dockerfiles * Prevent failure when obj exists from host compile * Enhance readability of disposed stages * Formatting --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 266b59f1c..67505a57d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,8 @@ ARG DOTNET_VERSION=2 FROM microsoft/dotnet:${DOTNET_VERSION}-sdk as builder WORKDIR /repo COPY . . -RUN export DOTNET_CLI_TELEMETRY_OPTOUT=1 \ - && dotnet clean \ - && dotnet publish \ +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +RUN dotnet publish \ --configuration release \ --output /jellyfin \ Jellyfin.Server -- cgit v1.2.3