mirror of
https://github.com/cetic/unikernels.git
synced 2024-12-26 08:13:26 +07:00
11 lines
387 B
Bash
11 lines
387 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Building binary from C++ code (statically linking libraries)
|
||
|
docker run --rm -it -v "${PWD}":/usr/src/build -w /usr/src/build cetic/compiler g++ -std=c++11 -static -o runnableService *.cpp
|
||
|
|
||
|
# Building the container (expecting the Dockerfile to be present)
|
||
|
docker build -t cetic/webserver .
|
||
|
|
||
|
# Launching the service in a Docker container
|
||
|
docker run --rm -d cetic/webserver
|