https://github.com/michiel/docker-rust-microservice
https://github.com/michiel/docker-rust-microservice
alpine docker microservice rust
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/michiel/docker-rust-microservice
- Owner: michiel
- Created: 2017-02-15T21:12:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-02T21:19:58.000Z (about 9 years ago)
- Last Synced: 2025-06-09T05:07:14.514Z (10 months ago)
- Topics: alpine, docker, microservice, rust
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-rust-microservice
## Prerequisites
* [rustup](https://www.rustup.rs/) - Rust Toolchain installer
* [docker](https://www.docker.com/) - Docker
## Build
[Alpine Linux](https://alpinelinux.org/) uses [musl-libc](https://www.musl-libc.org/) instead of glibc, which is the default for most common distributions.
rustup target add x86_64-unknown-linux-musl
Once that is installed we can explicitly target it when building the service,
cargo build --target x86_64-unknown-linux-musl --release
## Running
docker run -it echo-rs -p 4001:4000
Troubleshooting
docker run -it echo-rs -p 4001:4000 /bin/sh