Ecosyste.ms: Awesome
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: 6 days ago
JSON representation
Docker Multi-stage Build for Tiny Rust Image Deployment
- Host: GitHub
- URL: https://github.com/numq/dockerize-rust
- Owner: numq
- License: mit
- Created: 2023-07-19T19:43:50.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-01T21:20:36.000Z (10 months ago)
- Last Synced: 2024-11-18T23:57:44.795Z (2 months ago)
- Topics: docker, docker-binary, docker-compose, dockerfile, multistage-build, rust, tiny-image
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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...]
```