Update Dockerfile and build script to support custom installation prefix
This commit is contained in:
1 parent
292a8b870a
commit
be9078f5af
3 files changed
+49
-25
No files matched your search
@@ -19,6 +19,13 @@ Use environment variables to select the container engine or override image names
|
||||
CONTAINER_ENGINE=podman IMAGE_NAME=my-build-env ./rocky9/build.sh
|
||||
```
|
||||
|
||||
The Debian 13 and Rocky Linux 9 images install every library under `/usr/local` by default. Set `PREFIX` to install them elsewhere; the build environment variables (`PATH`, `PKG_CONFIG_PATH`, `CMAKE_PREFIX_PATH`, `CMAKE_INSTALL_PREFIX`, and so on) follow it. The Alpine image does not support `PREFIX`.
|
||||
|
||||
```sh
|
||||
PREFIX=/opt/stack ./debian13/build.sh
|
||||
PREFIX=/opt/stack ./rocky9/build.sh
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```sh
|
||||
|
||||
Reference in new issue
Block a user