diff --git a/docker/Dockerfile.api b/docker/Dockerfile.api index 34d9caa..da83652 100644 --- a/docker/Dockerfile.api +++ b/docker/Dockerfile.api @@ -1,8 +1,8 @@ # Multi-stage build for Corrosion API # Stage 1: Build the Rust binary -FROM rust:1.85-alpine AS builder +FROM rust:latest AS builder -RUN apk add --no-cache musl-dev pkgconfig openssl-dev openssl-libs-static +RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/* WORKDIR /build @@ -18,9 +18,9 @@ COPY migrations/ migrations/ RUN touch src/main.rs && cargo build --release # Stage 2: Runtime image -FROM alpine:3.20 +FROM debian:bookworm-slim -RUN apk add --no-cache ca-certificates +RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* WORKDIR /app