Sign inSign up

auterion/suite-rust-builder

By auterion

•Updated over 6 years ago

A base image for Rust services

Image
0

1.6K

auterion/suite-rust-builder repository overview

⁠Suite Rust Builder

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.

⁠Example use

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⁠

Tag summary

Content type

Image

Digest

Size

862 MB

Last updated

over 6 years ago

docker pull auterion/suite-rust-builder