10 lines
300 B
Bash
10 lines
300 B
Bash
#!/bin/bash
|
|
|
|
# build with CMake version specified in dockerfile
|
|
docker build -t with_args:default .
|
|
docker run --rm with_args:default cmake --version
|
|
|
|
# build with specific CMake version
|
|
docker build --build-arg CMAKE_VERSION=3.26.5 -t with_args:3.26 .
|
|
docker run --rm with_args:3.26 cmake --version
|