commit
cc8609d0aa
15
Dockerfile
15
Dockerfile
|
@ -1,6 +1,15 @@
|
||||||
ARG DOTNET_VERSION=2.2
|
ARG DOTNET_VERSION=2.2
|
||||||
ARG FFMPEG_VERSION=latest
|
ARG FFMPEG_VERSION=latest
|
||||||
|
|
||||||
|
FROM node:alpine as web-builder
|
||||||
|
ARG JELLYFIN_WEB_VERSION=v10.4.0
|
||||||
|
RUN apk add curl \
|
||||||
|
&& curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
||||||
|
&& cd jellyfin-web-* \
|
||||||
|
&& yarn install \
|
||||||
|
&& yarn build \
|
||||||
|
&& mv dist /dist
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builder
|
FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builder
|
||||||
WORKDIR /repo
|
WORKDIR /repo
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -21,11 +30,7 @@ RUN apt-get update \
|
||||||
&& chmod 777 /cache /config /media
|
&& chmod 777 /cache /config /media
|
||||||
COPY --from=ffmpeg / /
|
COPY --from=ffmpeg / /
|
||||||
COPY --from=builder /jellyfin /jellyfin
|
COPY --from=builder /jellyfin /jellyfin
|
||||||
|
COPY --from=web-builder /dist /jellyfin/jellyfin-web/src
|
||||||
ARG JELLYFIN_WEB_VERSION=v10.4.0
|
|
||||||
RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
|
||||||
&& rm -rf /jellyfin/jellyfin-web \
|
|
||||||
&& mv jellyfin-web-* /jellyfin/jellyfin-web
|
|
||||||
|
|
||||||
EXPOSE 8096
|
EXPOSE 8096
|
||||||
VOLUME /cache /config /media
|
VOLUME /cache /config /media
|
||||||
|
|
|
@ -3,6 +3,16 @@
|
||||||
ARG DOTNET_VERSION=3.0
|
ARG DOTNET_VERSION=3.0
|
||||||
|
|
||||||
|
|
||||||
|
FROM node:alpine as web-builder
|
||||||
|
ARG JELLYFIN_WEB_VERSION=v10.4.0
|
||||||
|
RUN apk add curl \
|
||||||
|
&& curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
||||||
|
&& cd jellyfin-web-* \
|
||||||
|
&& yarn install \
|
||||||
|
&& yarn build \
|
||||||
|
&& mv dist /dist
|
||||||
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builder
|
FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builder
|
||||||
WORKDIR /repo
|
WORKDIR /repo
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -25,11 +35,7 @@ RUN apt-get update \
|
||||||
&& mkdir -p /cache /config /media \
|
&& mkdir -p /cache /config /media \
|
||||||
&& chmod 777 /cache /config /media
|
&& chmod 777 /cache /config /media
|
||||||
COPY --from=builder /jellyfin /jellyfin
|
COPY --from=builder /jellyfin /jellyfin
|
||||||
|
COPY --from=web-builder /dist /jellyfin/jellyfin-web/src
|
||||||
ARG JELLYFIN_WEB_VERSION=v10.4.0
|
|
||||||
RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
|
||||||
&& rm -rf /jellyfin/jellyfin-web \
|
|
||||||
&& mv jellyfin-web-* /jellyfin/jellyfin-web
|
|
||||||
|
|
||||||
EXPOSE 8096
|
EXPOSE 8096
|
||||||
VOLUME /cache /config /media
|
VOLUME /cache /config /media
|
||||||
|
|
|
@ -3,6 +3,16 @@
|
||||||
ARG DOTNET_VERSION=3.0
|
ARG DOTNET_VERSION=3.0
|
||||||
|
|
||||||
|
|
||||||
|
FROM node:alpine as web-builder
|
||||||
|
ARG JELLYFIN_WEB_VERSION=v10.4.0
|
||||||
|
RUN apk add curl \
|
||||||
|
&& curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
||||||
|
&& cd jellyfin-web-* \
|
||||||
|
&& yarn install \
|
||||||
|
&& yarn build \
|
||||||
|
&& mv dist /dist
|
||||||
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builder
|
FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builder
|
||||||
WORKDIR /repo
|
WORKDIR /repo
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -25,11 +35,7 @@ RUN apt-get update \
|
||||||
&& mkdir -p /cache /config /media \
|
&& mkdir -p /cache /config /media \
|
||||||
&& chmod 777 /cache /config /media
|
&& chmod 777 /cache /config /media
|
||||||
COPY --from=builder /jellyfin /jellyfin
|
COPY --from=builder /jellyfin /jellyfin
|
||||||
|
COPY --from=web-builder /dist /jellyfin/jellyfin-web/src
|
||||||
ARG JELLYFIN_WEB_VERSION=v10.4.0
|
|
||||||
RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
|
||||||
&& rm -rf /jellyfin/jellyfin-web \
|
|
||||||
&& mv jellyfin-web-* /jellyfin/jellyfin-web
|
|
||||||
|
|
||||||
EXPOSE 8096
|
EXPOSE 8096
|
||||||
VOLUME /cache /config /media
|
VOLUME /cache /config /media
|
||||||
|
|
Loading…
Reference in New Issue
Block a user