aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Rabert <ar@nullsum.net>2018-12-16 00:40:07 -0500
committerAndrew Rabert <ar@nullsum.net>2018-12-16 00:40:21 -0500
commit23ed559bb08439f79f4e7b8217385bcee3b4e7fa (patch)
tree65df9e239ab8cf2a560bc7f16e471bf97ddd04e0
parent336a4a2b8d728c32bd22404dfa16f1a80a3e9b15 (diff)
Simplify Docker build
- Remove unnecessary build command (implied in publish) - Remove unnecessary solution arg - Move arg to command
-rw-r--r--Dockerfile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 9c352ef8f..5147ffb9a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,11 +3,9 @@ ARG DOTNET_VERSION=2
FROM microsoft/dotnet:${DOTNET_VERSION}-sdk as builder
WORKDIR /repo
COPY . .
-ARG CONFIGURATION=RELEASE
RUN export DOTNET_CLI_TELEMETRY_OPTOUT=1 \
&& dotnet clean \
- && dotnet build --configuration ${CONFIGURATION} $(pwd)/MediaBrowser.sln \
- && dotnet publish --configuration ${CONFIGURATION} $(pwd)/MediaBrowser.sln --output /jellyfin
+ && dotnet publish --configuration release --output /jellyfin
FROM microsoft/dotnet:${DOTNET_VERSION}-runtime
COPY --from=builder /jellyfin /jellyfin