All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 7m24s
23 lines
424 B
Docker
23 lines
424 B
Docker
FROM rust:1.88-bookworm AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY src ./src
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM debian:bookworm-slim AS runtime
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=builder /app/target/release/rhythm_backend /app/rhythm_backend
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["/app/rhythm_backend"]
|