2021-02-01 20:55:17 +00:00
|
|
|
FROM golang:1.16rc1-buster AS build
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2020-08-17 10:32:34 +00:00
|
|
|
COPY . /opt/build
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2020-08-17 10:32:34 +00:00
|
|
|
RUN apt update -y \
|
2020-09-02 19:10:33 +00:00
|
|
|
&& apt install build-essential python3-pip curl software-properties-common sed upx -y \
|
2020-08-17 10:32:34 +00:00
|
|
|
&& (curl -sL https://deb.nodesource.com/setup_14.x | bash -) \
|
|
|
|
&& apt install nodejs \
|
2021-02-01 20:55:17 +00:00
|
|
|
&& (cd /opt/build; make all-external GOESBUILD=on; make compress) \
|
2021-01-29 17:13:15 +00:00
|
|
|
&& 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
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2021-02-01 20:55:17 +00:00
|
|
|
FROM golang:1.16rc1-buster
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2020-08-17 10:32:34 +00:00
|
|
|
COPY --from=build /opt/build/build /opt/jfa-go
|
2020-08-03 18:45:10 +00:00
|
|
|
|
|
|
|
EXPOSE 8056
|
|
|
|
|
|
|
|
CMD [ "/opt/jfa-go/jfa-go", "-data", "/data" ]
|
|
|
|
|
|
|
|
|