From ba7daee1b6bce3ee587a0dbe0d6cd43bf1b2b9b8 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Sat, 30 Apr 2022 13:55:03 -0400 Subject: [PATCH] Fix vendored sources --- Cargo.toml | 8 +------- Dockerfile | 2 +- config/cargo.toml | 5 +++++ 3 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 config/cargo.toml diff --git a/Cargo.toml b/Cargo.toml index cf01251..e8551d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,10 +10,4 @@ actix-web = { version = "4" } awc = { version = "3", features = ["rustls"] } bytes = "1.1.0" lazy_static = "1.4.0" -regex = "1.5.5" - -[source.crates-io] -replace-with = "vendored-sources" - -[source.vendored-sources] -directory = "vendor" \ No newline at end of file +regex = "1.5.5" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 5fc5e52..b710bbe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,9 @@ WORKDIR /src RUN apk --no-cache add musl-dev git ca-certificates RUN git clone https://codeberg.org/librarian/stream-proxy . +RUN mv ./config/cargo.toml ~/.cargo/config.toml RUN cargo vendor RUN cargo build --release -RUN ls target/release FROM alpine:latest as bin diff --git a/config/cargo.toml b/config/cargo.toml new file mode 100644 index 0000000..a476f35 --- /dev/null +++ b/config/cargo.toml @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file