Files
stream-proxy/Dockerfile
T
video-prize-ranch e31b850c8f Add Dockerfile
2022-04-23 19:40:24 -04:00

19 lines
414 B
Docker

FROM rust:alpine AS build
WORKDIR /src
RUN apk --no-cache add musl-dev git ca-certificates
RUN git clone https://codeberg.org/librarian/stream-proxy .
RUN cargo vendor
RUN cargo build --release
RUN ls target/release
FROM scratch as bin
WORKDIR /app
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /src/target/release/stream-proxy .
EXPOSE 3001
CMD ["/app/stream-proxy"]