paulxstretch/build_docker.sh

7 lines
355 B
Bash
Executable File

#! /bin/bash
docker build -t paulxstretch_builder -f Dockerfile.arch .
mkdir -p ./build
docker run -v $PWD:/src -v $PWD/build:/build paulxstretch_builder cmake -B build -S /src -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
docker run -v $PWD:/src -v $PWD/build:/build paulxstretch_builder cmake --build build
sudo chown $USER build/. -R