All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m51s
16 lines
270 B
Docker
16 lines
270 B
Docker
FROM rust:1.95.0-alpine3.22 AS builder
|
|
WORKDIR /app
|
|
|
|
ARG DB_URL
|
|
ARG APP_ENV
|
|
|
|
COPY . .
|
|
RUN cargo build --release
|
|
|
|
# Small runtime image
|
|
FROM alpine:3.22.4
|
|
WORKDIR /app
|
|
COPY --from=builder /app/target/release/rhythm-backend /app/executable
|
|
|
|
ENTRYPOINT ["/app/executable"]
|