feat: setup Dockerfile

This commit is contained in:
2026-01-20 22:34:22 -08:00
parent 09f6f49390
commit ddf47ff22d
2 changed files with 14 additions and 1 deletions

13
api/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM rust:1.92-alpine3.20 AS builder
COPY . .
RUN apk update && apk add musl-dev libressl-dev
RUN cargo build --release
FROM alpine:3.20
COPY --from=builder /target/release/api /usr/local/bin/api
CMD ["/usr/local/bin/api"]

View File

@@ -97,7 +97,7 @@ async fn run() -> std::io::Result<()> {
),
)
})
.bind(("127.0.0.1", 8080))?
.bind(("0.0.0.0", 8080))?
.run()
.await
}