This repository has no description
1FROM docker.io/library/rust:1-alpine3.23 AS builder
2RUN apk add --no-cache build-base musl-dev cmake perl pkgconfig
3WORKDIR /src
4COPY . ./
5RUN rm -f .cargo/config.toml
6RUN cargo build --release --bin hydrant
7RUN strip target/release/hydrant
8
9FROM docker.io/library/alpine:3.23
10RUN apk add --no-cache ca-certificates
11COPY --from=builder /src/target/release/hydrant /usr/local/bin/hydrant
12ENV HYDRANT_DATABASE_PATH=/var/lib/hydrant
13EXPOSE 3000
14ENTRYPOINT ["/usr/local/bin/hydrant"]