An open API service indexing awesome lists of open source software.

https://github.com/numq/dockerize-rust

Docker Multi-stage Build for Tiny Rust Image Deployment
https://github.com/numq/dockerize-rust

docker docker-binary docker-compose dockerfile multistage-build rust tiny-image

Last synced: about 2 months ago
JSON representation

Docker Multi-stage Build for Tiny Rust Image Deployment

Awesome Lists containing this project

README

          

Dockerize Rust

Docker Multi-stage Build for Tiny Rust Image Deployment based on linux musl

*[Multi-stage](https://docs.docker.com/build/building/multi-stage/) - *this is a way to reduce an image size creating an empty image and copying the binary file into it.*


  • First stage


    • Create a new image

    • Install dependencies

    • Build binaries


  • Second stage


    • Create a new image

    • Copy binaries

    • Launch


# Run:
```
docker compose up [OPTIONS] [SERVICE...]
```

___



QR code




numq.github.io/support