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.
docker build --target build -t dockerized-restinio/build .
docker build -t dockerized-restinio/runtime .
docker run -d -p 8080:8080 --name restinio dockerized-restinio/runtime
curl -vX GET localhost:8080/ready
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 |
docker run -d --rm -p 8085:8085 --expose 8085 dockerized-restinio/runtime --port 8085
curl -vX GET localhost:8085/ready