mirror of
https://github.com/v0l/route96.git
synced 2025-06-16 00:08:10 +00:00
feat: new UI
This commit is contained in:
12
Dockerfile
12
Dockerfile
@ -2,7 +2,10 @@ ARG IMAGE=rust:bookworm
|
||||
|
||||
FROM $IMAGE as build
|
||||
WORKDIR /app/src
|
||||
COPY . .
|
||||
COPY src src
|
||||
COPY migrations migrations
|
||||
COPY Cargo.lock Cargo.lock
|
||||
COPY Cargo.toml Cargo.toml
|
||||
ENV FFMPEG_DIR=/app/ffmpeg
|
||||
RUN apt update && \
|
||||
apt install -y \
|
||||
@ -30,12 +33,17 @@ RUN git clone --depth=1 https://git.v0l.io/Kieran/FFmpeg.git && \
|
||||
make -j8 && make install
|
||||
RUN cargo install --path . --root /app/build
|
||||
|
||||
FROM node:bookworm as ui_builder
|
||||
WORKDIR /app/src
|
||||
COPY ui_src .
|
||||
RUN yarn && yarn build
|
||||
|
||||
FROM $IMAGE as runner
|
||||
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=build /app/src/ui ui
|
||||
COPY --from=ui_builder /app/src/dist ui
|
||||
COPY --from=build /app/ffmpeg/lib/ /lib
|
||||
ENTRYPOINT ["./bin/route96"]
|
Reference in New Issue
Block a user