HUB
Sign inSign up

accuminium/rust-ubuntu

By accuminium

•Updated about 6 years ago

Rust on Ubuntu

Image
1

456

accuminium/rust-ubuntu repository overview

⁠Docker Image for Rust on Ubuntu

⁠Usage

You can use this image to build Cargo packages for Ubuntu. Simply change to the root directory of a Cargo project, create an appropriate target directory

mkdir -p target/ubuntu

and invoke Cargo in the container

docker run \
    --user $(id -u):$(id -g) \
    -t --rm \
    -v "$PWD:/source" \
    -v "$PWD/target/ubuntu:/source/target" \
    accuminium/rust-ubuntu:20.10_stable \
    cargo build --release

Adapt the version of the image (20.10_stable in this example) as needed.

Tag summary

Content type

Image

Digest

Size

334.1 MB

Last updated

about 6 years ago

docker pull accuminium/rust-ubuntu