Files
campaign-manager/backend/content-service/Dockerfile

15 lines
416 B
Docker

FROM rust:alpine AS builder
WORKDIR /app
RUN apk add --no-cache build-base pkgconfig openssl-dev
COPY backend ./backend
RUN cargo build --release --manifest-path backend/Cargo.toml -p content-service
FROM alpine:3.23
RUN apk add --no-cache ca-certificates openssl libgcc libstdc++
COPY --from=builder /app/backend/target/release/content-service /usr/local/bin/content-service
EXPOSE 3001
CMD ["content-service"]