Skip to content

alextanhongpin/rust-actix-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-actix

Build

$ make build
build:
	docker build -t alextanhongpin/rust-actix .

Run

$ make run
run:
	docker run -p 8000:8000 alextanhongpin/rust-actix

Output:

Started http server: 0.0.0.0:8000

Test

$ curl -XPOST -H 'Content-Type: application/json' -d '{"name": "john", "number": 1}' http://0.0.0.0:8000/hello
{"name":"john","number":1}%

Docker Size

$ docker images | grep actix

Output:

alextanhongpin/rust-actix          latest                  c5aa959940a9        8 minutes ago       16.5MB

About

Dockerized example of Rust with Actix framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published