mbp-ubuntu/build_in_docker.sh

16 lines
218 B
Bash
Executable File

#!/bin/bash
set -eu -o pipefail
DOCKER_IMAGE=ubuntu:20.04
docker pull ${DOCKER_IMAGE}
docker run \
--privileged \
--rm \
-t \
-v "$(pwd)":/repo \
${DOCKER_IMAGE} \
/bin/bash -c "cd /repo && ./build.sh"