A base image for Rust services
1.6K
A base docker image for Rust services. This decreases the build and test times for the Rust projects by having many of the crates already in the docker image.
FROM auterion/suite-rust-builder AS builder
ADD . ./
RUN cargo build --release
FROM debian:stable-slim
RUN apt-get update \
&& apt-get install -y libpq5 ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder \
/home/rust/target/release/my-binary \
/usr/local/bin/
USER nobody
CMD /usr/local/bin/my-binary
This gets built by dockerhub at https://hub.docker.com/repository/docker/auterion/suite-rust-builder
Content type
Image
Digest
Size
862 MB
Last updated
over 6 years ago
docker pull auterion/suite-rust-builder