-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (23 loc) · 938 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (23 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM rust:1.92-bookworm AS builder
# Install protobuf compiler
RUN apt-get update && \
apt-get install -y protobuf-compiler && \
rm -rf /var/lib/apt/lists/*
RUN rustup component add rustfmt
WORKDIR /usr/src/object-store
COPY . .
RUN cargo install --locked --path .
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.2 && \
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64
FROM debian:bookworm-slim
LABEL org.opencontainers.image.source=https://github.com/provenance-io/object-store
RUN apt-get update && \
apt-get install -y ca-certificates libssl3 && \
rm -rf /var/lib/apt/lists/*
EXPOSE 8080
COPY --from=builder \
/usr/local/cargo/bin/object-store /usr/local/bin/object-store
COPY --from=builder \
/bin/grpc_health_probe /bin/grpc_health_probe
RUN chmod +x /bin/grpc_health_probe
CMD ["object-store"]