We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b58974 commit 5038642Copy full SHA for 5038642
2 files changed
Dockerfile
@@ -1,19 +1,17 @@
1
-FROM rust:alpine as builder
+FROM rust:latest as builder
2
3
WORKDIR /cdn-api
4
5
COPY . .
6
7
-RUN apk add musl-dev
8
-
9
RUN cargo build --release
10
11
-FROM alpine:latest
+FROM debian:latest
12
13
14
15
-RUN apk add ffmpeg
+RUN apt-get update && apt-get install -y ffmpeg
16
17
COPY --from=builder /cdn-api/target/release/cdn-api .
18
19
-CMD ["./cdn-api"]
+CMD ["./cdn-api"]
src/main.rs
@@ -35,7 +35,7 @@ async fn init() -> anyhow::Result<()> {
35
info!("Starting HTTP server on {}", address);
36
37
HttpServer::new(move || App::new().service(api::routes()).app_data(storage.clone()))
38
- .bind(("127.0.0.1", 8080))?
+ .bind(address)?
39
.run()
40
.await?;
41
0 commit comments