add rpmbuild example

This commit is contained in:
ebner 2024-06-27 15:52:50 +02:00
parent 0e1ff4ff79
commit 859aa114a3

View File

@ -10,6 +10,12 @@ The image can be used as follows:
docker run -it --rm container.psi.ch/images/rhel9-developer
```
To build an RPM this image can be used as follows:
```bash
docker run --platform linux/amd64 -it --rm -v $(pwd):/data --workdir /data container.psi.ch/images/rhel9-developer rpmbuild -ba whatever.spec
```
To base other images upon this image use
```dockerfile
FROM container.psi.ch/images/rhel9-developer