|
|
@ -1,15 +1,17 @@
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:latest AS support
|
|
|
|
# Use this instead if hrfee/jfa-go-build-docker doesn't support your architecture
|
|
|
|
|
|
|
|
# FROM --platform=$BUILDPLATFORM golang:latest AS support
|
|
|
|
|
|
|
|
FROM --platform=$BUILDPLATFORM hrfee/jfa-go-build-docker AS support
|
|
|
|
|
|
|
|
|
|
|
|
COPY . /opt/build
|
|
|
|
COPY . /opt/build
|
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get update -y \
|
|
|
|
# Uncomment this if hrfee/jfa-go-build-docker doesn't support your architecture
|
|
|
|
&& apt-get install build-essential python3-pip curl software-properties-common sed -y \
|
|
|
|
# RUN apt-get update -y \
|
|
|
|
&& (curl -sL https://deb.nodesource.com/setup_current.x | bash -) \
|
|
|
|
# && apt-get install build-essential python3-pip -y \
|
|
|
|
&& apt-get install nodejs \
|
|
|
|
# && (curl -sL https://deb.nodesource.com/setup_current.x | bash -) \
|
|
|
|
&& (cd /opt/build; make configuration npm email typescript variants-html bundle-css inline-css swagger copy INTERNAL=off GOESBUILD=on) \
|
|
|
|
# && apt-get install nodejs
|
|
|
|
|
|
|
|
RUN (cd /opt/build; make configuration npm email typescript variants-html bundle-css inline-css swagger copy INTERNAL=off GOESBUILD=on) \
|
|
|
|
&& sed -i 's#id="password_resets-watch_directory" placeholder="/config/jellyfin"#id="password_resets-watch_directory" value="/jf" disabled#g' /opt/build/build/data/html/setup.html
|
|
|
|
&& sed -i 's#id="password_resets-watch_directory" placeholder="/config/jellyfin"#id="password_resets-watch_directory" value="/jf" disabled#g' /opt/build/build/data/html/setup.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:latest AS build
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:latest AS build
|
|
|
|
ARG TARGETARCH
|
|
|
|
ARG TARGETARCH
|
|
|
|
ENV GOARCH=$TARGETARCH
|
|
|
|
ENV GOARCH=$TARGETARCH
|
|
|
|