mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
20 lines
418 B
Docker
20 lines
418 B
Docker
FROM rust as builder
|
|
WORKDIR /app
|
|
|
|
# FIX: see https://github.com/rust-lang/cargo/issues/2644
|
|
RUN mkdir src/ && touch src/lib.rs
|
|
COPY Cargo.toml Cargo.lock ./
|
|
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
|
RUN cargo build
|
|
RUN rm src/lib.rs
|
|
|
|
COPY src src
|
|
RUN cargo install --path .
|
|
|
|
FROM alpine
|
|
RUN apk add --no-cache ffmpeg
|
|
COPY --from=builder /usr/local/cargo/bin/transcoder ./transcoder
|
|
|
|
EXPOSE 7666
|
|
CMD ./transcoder
|