File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,18 +3,16 @@ name = "cdn-api"
33version = " 0.1.0"
44edition = " 2021"
55
6- # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7-
86[dependencies ]
7+ actix-files = " 0.6"
8+ actix-multipart = " 0.6.1"
99actix-web = " 4"
10- env_logger = " 0.10"
11- log = " 0.4"
1210ahash = " 0.8"
13- uuid = {version = " 1.5" , features =[" v4" ," serde" ]}
1411anyhow = " 1.0"
15- serde = { version = " 1.0" , features = [" derive" ] }
16- actix-files = " 0.6"
17- chrono = {version =" 0.4" ,features =[" serde" ]}
18- actix-multipart = " 0.6.1"
12+ chrono = { version =" 0.4" , features = [" serde" ] }
13+ env_logger = " 0.10"
1914futures = " 0.3"
20- tokio = " 1.33"
15+ log = " 0.4"
16+ serde = { version = " 1.0" , features = [" derive" ] }
17+ tokio = " 1.33"
18+ uuid = {version = " 1.5" , features = [" v4" , " serde" ] }
Original file line number Diff line number Diff line change 1- FROM rust:latest as builder
1+ FROM rust:alpine as builder
22
33WORKDIR /cdn-api
44
55COPY . .
66
7+ RUN apk add musl-dev
8+
79RUN cargo build --release
810
9- FROM debian :latest
11+ FROM alpine :latest
1012
1113WORKDIR /cdn-api
1214
13- RUN apt-get update && apt-get install -y ffmpeg
15+ RUN apk add ffmpeg
1416
1517COPY --from=builder /cdn-api/target/release/cdn-api .
1618
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments