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

27 lines
1.1 KiB
Docker
Raw Normal View History

# Use this instead if hrfee/jfa-go-build-docker doesn't support your architecture
# FROM --platform=$BUILDPLATFORM golang:latest AS support
FROM --platform=$BUILDPLATFORM docker.io/hrfee/jfa-go-build-docker:latest AS support
2024-08-11 16:02:33 +00:00
# FROM --platform=$BUILDPLATFORM jfa-go-bd AS support
ARG BUILT_BY
ENV JFA_GO_BUILT_BY=$BUILT_BY
2020-08-03 18:45:10 +00:00
COPY . /opt/build
2020-08-03 18:45:10 +00:00
# RUN curl -sfL https://goreleaser.com/static/run > /goreleaser && chmod +x /goreleaser
2024-08-11 16:39:58 +00:00
RUN cd /opt/build; INTERNAL=off UPDATER=docker ./scripts/version.sh /goreleaser build --snapshot --skip=validate --clean --id notray-e2ee
RUN mv /opt/build/dist/*_linux_arm_6 /opt/build/dist/placeholder_linux_arm
RUN 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 golang:bookworm AS final
2024-08-11 16:02:33 +00:00
ARG TARGETARCH
COPY --from=support /opt/build/dist/*_linux_${TARGETARCH}* /opt/jfa-go
COPY --from=support /opt/build/build/data /opt/jfa-go/data
2020-08-03 18:45:10 +00:00
2024-08-10 20:43:16 +00:00
RUN apt-get update -y && apt-get install libolm-dev -y
2020-08-03 18:45:10 +00:00
EXPOSE 8056
EXPOSE 8057
2020-08-03 18:45:10 +00:00
CMD [ "/opt/jfa-go/jfa-go", "-data", "/data" ]