Skip to content

neodyland/tiny-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Rust

The smallest docker image with openssl-sys native-tls support.
Works on linux/amd64 linux/arm64.
Smaller than ghr.io/distroless/base!!

How to use

FROM rust:latest AS builder
WORKDIR /ws
COPY . .
RUN cargo build --release
FROM googlefan25/tiny-rust:latest
COPY --from=builder /ws/target/release/$BIN_NAME /$BIN_NAME
CMD [/"$BIN_NAME"]

Building by yourself

arm64

docker build . --file aarch64.Dockerfile --platform linux/arm64 --tag $YOU_IMAGE_TAG_HERE

x86_64

docker build . --file x86_64.Dockerfile --platform linux/amd64 --tag $YOU_IMAGE_TAG_HERE

About

Rust docker image smaller than distroless

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published