mirror of
https://codeberg.org/librarian/stream-proxy
synced 2024-12-06 19:26:34 +01:00
19 lines
414 B
Docker
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"] |