Skip to content

michiel/docker-rust-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-rust-microservice

Prerequisites

Build

Alpine Linux uses musl-libc 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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published