Skip to content

About

Tutorial: deploy any app with its own Dockerfile on Light Cloud (Rust example)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

tutorial-dockerfile-app

Deploy to Light Cloud

A small Rust (axum) word counter with its own Dockerfile, used in the Light Cloud tutorial Bring your own Dockerfile: deploy anything that runs in a container.

flowchart LR
  push[git push] --> build[Light Cloud builds your Dockerfile]
  build --> s1[Stage 1: rust image compiles the binary]
  s1 --> s2[Stage 2: debian-slim with the binary only]
  s2 -->|EXPOSE 8080 / PORT| app[Running container]
Loading

Run it

cargo run
curl -X POST localhost:8080/count -H "content-type: application/json" -d '{"text":"hello world"}'

About

Tutorial: deploy any app with its own Dockerfile on Light Cloud (Rust example)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages