mirror of
https://github.com/v0l/route96.git
synced 2025-06-22 13:38:07 +00:00
26 lines
731 B
Docker
26 lines
731 B
Docker
ARG IMAGE=rust:bookworm
|
|
ARG FEATURES
|
|
|
|
FROM voidic/rust-ffmpeg AS build
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN cargo install --path . --root /app/build --features "${FEATURES}"
|
|
|
|
FROM node:bookworm AS ui_builder
|
|
WORKDIR /app/src
|
|
COPY ui_src .
|
|
RUN yarn && yarn build
|
|
|
|
FROM $IMAGE AS runner
|
|
LABEL org.opencontainers.image.source="https://git.v0l.io/Kieran/route96"
|
|
LABEL org.opencontainers.image.licenses="MIT"
|
|
LABEL org.opencontainers.image.authors="Kieran"
|
|
WORKDIR /app
|
|
RUN apt update && \
|
|
apt install -y libx264-164 libwebp7 libvpx7 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
COPY --from=build /app/build .
|
|
COPY --from=ui_builder /app/src/dist ui
|
|
COPY --from=build /app/src/ffmpeg/lib/ /lib
|
|
RUN ./bin/route96 --version
|
|
ENTRYPOINT ["./bin/route96"] |