1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00
jfa-go/Dockerfile

30 lines
886 B
Docker
Raw Normal View History

FROM --platform=$BUILDPLATFORM golang:latest AS support
2020-08-03 18:45:10 +00:00
COPY . /opt/build
2020-08-03 18:45:10 +00:00
RUN apt update -y \
&& apt install build-essential python3-pip curl software-properties-common sed -y \
&& (curl -sL https://deb.nodesource.com/setup_14.x | bash -) \
&& apt install nodejs \
&& (cd /opt/build; make configuration npm email version typescript bundle-css swagger external-files copy GOESBUILD=on) \
2021-02-17 11:33:41 +00:00
&& sed -i 's#id="password_resets-watch_directory" placeholder="/config/jellyfin"#id="password_resets-watch_directory" value="/jf" disabled#g' /opt/build/data/html/setup.html
2020-08-03 18:45:10 +00:00
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)
FROM golang:latest
2020-08-03 18:45:10 +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" ]