Docker-Hub-frolvlad / docker-alpine-rust

The smallest Docker image with Rust (~220MB)

Home Page:https://hub.docker.com/r/frolvlad/alpine-rust/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Stars Docker Pulls

Rust Docker image

This image is based on Alpine Linux image, which is only a 5MB image, and contains Rust with GCC.

Download size of this image is only:

Usage Example

$ echo -e 'fn main() { println!("Hello world"); }' > qq.rs
$ docker run --rm -v "$(pwd):/tmp" --workdir /tmp frolvlad/alpine-rust rustc -C target-feature=+crt-static ./qq.rs

Once you have run these commands you will have qq executable in your current directory and if you execute it, you will get printed 'Hello World'!

About

The smallest Docker image with Rust (~220MB)

https://hub.docker.com/r/frolvlad/alpine-rust/

License:MIT License


Languages

Language:Dockerfile 100.0%