mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 05:48:47 +01:00
Simplify Docker build
- Remove unnecessary build command (implied in publish) - Remove unnecessary solution arg - Move arg to command
This commit is contained in:
@@ -3,11 +3,9 @@ ARG DOTNET_VERSION=2
|
|||||||
FROM microsoft/dotnet:${DOTNET_VERSION}-sdk as builder
|
FROM microsoft/dotnet:${DOTNET_VERSION}-sdk as builder
|
||||||
WORKDIR /repo
|
WORKDIR /repo
|
||||||
COPY . .
|
COPY . .
|
||||||
ARG CONFIGURATION=RELEASE
|
|
||||||
RUN export DOTNET_CLI_TELEMETRY_OPTOUT=1 \
|
RUN export DOTNET_CLI_TELEMETRY_OPTOUT=1 \
|
||||||
&& dotnet clean \
|
&& dotnet clean \
|
||||||
&& dotnet build --configuration ${CONFIGURATION} $(pwd)/MediaBrowser.sln \
|
&& dotnet publish --configuration release --output /jellyfin
|
||||||
&& dotnet publish --configuration ${CONFIGURATION} $(pwd)/MediaBrowser.sln --output /jellyfin
|
|
||||||
|
|
||||||
FROM microsoft/dotnet:${DOTNET_VERSION}-runtime
|
FROM microsoft/dotnet:${DOTNET_VERSION}-runtime
|
||||||
COPY --from=builder /jellyfin /jellyfin
|
COPY --from=builder /jellyfin /jellyfin
|
||||||
|
|||||||
Reference in New Issue
Block a user