Skip to content

Docker image for RESTinio, an embedded C++ HTTP/Websocket server with separated build and runtime stages

License

Notifications You must be signed in to change notification settings

tpiekarski/dockerized-restinio

Repository files navigation

dockerized-restinio

Build Status

A project for running RESTinio, an embedded and lightweight HTTP/Websocket server written in C++14 inside a multi-stage build Docker container with separated build and runtime stages.

Build dockerized-restinio/build

docker build --target build -t dockerized-restinio/build . 

Build dockerized-restinio/runtime

docker build -t dockerized-restinio/runtime .

Run dockerized RESTinio

docker run -d -p 8080:8080 --name restinio dockerized-restinio/runtime

Readyness Probe

curl -vX GET localhost:8080/ready

Running with custom address and port

For running the container and RESTinio inside it with custom address and port there are two options exposed to set up and use different values from the default ones.

# Option Default
1. --address 0.0.0.0
2. --port 8080

Example

docker run -d --rm -p 8085:8085 --expose 8085 dockerized-restinio/runtime --port 8085
curl -vX GET localhost:8085/ready

Releases

No releases published

Packages

No packages published