mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
Harvey Tindall
92332206f0
If enabled, jfa-go pings buildrone (hosted at builds.hrfee.pw) every 30 min for new updates. If there is one, it gets information (and if applicable, a binary) from the appropriate source (buildrone, github, or dockerhub) and displays it on the admin page. You can switch update channels between stable and unstable. For binary releases, updates are downloaded automatically and installed when the user presses update. Since this obviously introduces some "phone-home" functionality into jfa-go, I just want to say IPs are not and will not be logged by buildrone, although I may later introduce functionality to give a rough idea of the number of users (again, no IPs stored). The whole thing can also be turned off in settings.
31 lines
923 B
Docker
31 lines
923 B
Docker
FROM --platform=$BUILDPLATFORM golang:latest AS support
|
|
|
|
COPY . /opt/build
|
|
|
|
RUN apt-get update -y \
|
|
&& apt-get install build-essential python3-pip curl software-properties-common sed -y \
|
|
&& (curl -sL https://deb.nodesource.com/setup_14.x | bash -) \
|
|
&& apt-get install nodejs \
|
|
&& (cd /opt/build; make configuration npm email typescript bundle-css swagger copy external-files 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
|
|
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:latest AS build
|
|
ARG TARGETARCH
|
|
ENV GOARCH=$TARGETARCH
|
|
|
|
COPY --from=support /opt/build /opt/build
|
|
|
|
RUN (cd /opt/build; make compile UPDATER=docker)
|
|
|
|
FROM golang:latest
|
|
|
|
COPY --from=build /opt/build/build /opt/jfa-go
|
|
|
|
EXPOSE 8056
|
|
EXPOSE 8057
|
|
|
|
CMD [ "/opt/jfa-go/jfa-go", "-data", "/data" ]
|
|
|
|
|