gluster-dir-csi/Dockerfile

28 lines
543 B
Docker
Raw Normal View History

FROM docker.io/rust:1.67.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"]