Docker image for Rust apps cross-compilation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lnkr 9881d5b26d Update 'Dockerfile' 7 months ago
Dockerfile Update 'Dockerfile' 7 months ago Update '' 7 months ago


Docker image intended for Rust apps cross-compilation.
Based on ubuntu:latest (latest LTS official image), it provides latest nightly Rust with the following targets:

  • x86_64-unknown-linux-gnu
  • x86_64-pc-windows-gnu

and provides some additional packages to be able to build:

Lists of built-in stuff will grow as the need arises. apt and rustup commands are available in pipeline to pull some additional stuff.


To build image locally:
docker build --pull --no-cache -t lnkr/rust:latest

Image is available at instance as lnkr/rust:latest and rebuilds on a daily basis.


Use this while defining steps:

image: lnkr/rust
pull: never

.drone.yml example

kind: pipeline
name: default
type: docker
- name: build & test
  image: lnkr/rust
  pull: never
  - cargo build --target x86_64-unknown-linux-gnu
  - cargo build --target x86_64-pc-windows-gnu
  - cargo test