HTTP Static server on boost::asio
and coroutines.
- Make tool
- C++14 compiler
- CMake 3.9 or higher
- boost libraries 1.65.0 or higher
- Clone and build the server
git clone https://github.com/ed-asriyan/static-server cd static-server cmake CMakeLists.txt make
- Run the server
./static_server <PORT> <ROOT_DIRECTORY>
- Then stop it by Ctrl-C
- Create an image
git clone https://github.com/ed-asriyan/static-server cd static-server docker build -t static_server .
- Create a container
docker run -d --name static_server -p <PORT>:80 -v <ROOT_DIRECTORY>:/static static_server
- Run the server
docker start static_server
- Then stop it by the folowing command
docker stop static_server