gossip/contrib/Dockerfile
2023-01-20 20:39:55 +01:00

27 lines
582 B
Docker

FROM rust:1.65-bullseye as builder
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
build-essential \
ca-certificates \
curl \
libfontconfig1-dev \
libssl-dev \
pkg-config \
sudo \
&& apt -y autoremove \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
RUN cargo install cargo-deb
# Build gossip
COPY ./ gossip/
WORKDIR gossip
RUN mkdir -p /gossip/artifacts
RUN cargo deb
RUN ls /gossip/target/debian/
FROM scratch as custom-exporter
COPY --from=builder /gossip/target/debian/gossip*_amd64.deb .