2021-02-16 16:08:53 +00:00
|
|
|
FROM --platform=$BUILDPLATFORM golang:latest AS support
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2023-01-30 16:56:29 +00:00
|
|
|
COPY . /var/build
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2021-02-19 14:26:11 +00:00
|
|
|
RUN apt-get update -y \
|
|
|
|
&& apt-get install build-essential python3-pip curl software-properties-common sed -y \
|
2022-01-30 17:18:51 +00:00
|
|
|
&& (curl -sL https://deb.nodesource.com/setup_current.x | bash -) \
|
2021-02-19 14:26:11 +00:00
|
|
|
&& apt-get install nodejs \
|
2023-01-30 16:56:29 +00:00
|
|
|
&& (cd /var/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' /var/build/build/data/html/setup.html
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2021-02-16 16:08:53 +00:00
|
|
|
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:latest AS build
|
|
|
|
ARG TARGETARCH
|
|
|
|
ENV GOARCH=$TARGETARCH
|
|
|
|
|
2023-01-30 16:56:29 +00:00
|
|
|
COPY --from=support /var/build /var/build
|
2021-02-16 16:08:53 +00:00
|
|
|
|
2023-01-30 16:56:29 +00:00
|
|
|
RUN (cd /var/build; make compile INTERNAL=off UPDATER=docker)
|
2021-02-16 16:08:53 +00:00
|
|
|
|
2020-08-17 10:32:34 +00:00
|
|
|
FROM golang:latest
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2023-01-30 16:56:29 +00:00
|
|
|
COPY --from=build /var/build/build /usr/bin/jfa-go
|
2020-08-03 18:45:10 +00:00
|
|
|
|
|
|
|
EXPOSE 8056
|
2021-02-17 16:04:25 +00:00
|
|
|
EXPOSE 8057
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2023-01-30 16:56:29 +00:00
|
|
|
VOLUME /config
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2023-01-30 16:56:29 +00:00
|
|
|
ENTRYPOINT ["/usr/bin/jfa-go/jfa-go", \
|
|
|
|
"-data", "/config"]
|