2022-11-06 16:38:49 +00:00
|
|
|
FROM docker.io/rust:1.65.0-slim-bullseye as builder
|
2022-07-21 10:21:17 +00:00
|
|
|
|
|
|
|
RUN apt-get update -yq && \
|
2022-11-06 16:38:49 +00:00
|
|
|
apt install -y --no-install-recommends \
|
|
|
|
build-essential \
|
|
|
|
libssl-dev \
|
|
|
|
pkg-config \
|
|
|
|
protobuf-compiler \
|
|
|
|
libprotobuf-dev
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN cargo build --release
|
|
|
|
|
|
|
|
FROM docker.io/debian:bullseye-slim
|
|
|
|
|
|
|
|
RUN apt-get update -yq && \
|
|
|
|
apt-get install -y --no-install-recommends glusterfs-client htop
|
|
|
|
|
|
|
|
COPY --from=builder /src/target/release/gluster-dir-csi /usr/local/bin/gluster-dir-csi
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/gluster-dir-csi"]
|
|
|
|
|
|
|
|
|
|
|
|
|