Skip to content

Commit 9b04bc6

Browse files
committed
Swap back to alpine
1 parent 5038642 commit 9b04bc6

4 files changed

Lines changed: 13 additions & 18 deletions

File tree

.env.example

Lines changed: 0 additions & 4 deletions
This file was deleted.

Cargo.toml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@ name = "cdn-api"
33
version = "0.1.0"
44
edition = "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"
99
actix-web = "4"
10-
env_logger = "0.10"
11-
log = "0.4"
1210
ahash = "0.8"
13-
uuid = {version = "1.5", features=["v4","serde"]}
1411
anyhow = "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"
1914
futures = "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"] }

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
FROM rust:latest as builder
1+
FROM rust:alpine as builder
22

33
WORKDIR /cdn-api
44

55
COPY . .
66

7+
RUN apk add musl-dev
8+
79
RUN cargo build --release
810

9-
FROM debian:latest
11+
FROM alpine:latest
1012

1113
WORKDIR /cdn-api
1214

13-
RUN apt-get update && apt-get install -y ffmpeg
15+
RUN apk add ffmpeg
1416

1517
COPY --from=builder /cdn-api/target/release/cdn-api .
1618

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)