Adam Stankiewicz | 30c58d5 | 2020-07-22 15:34:40 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | if ! command -v docker > /dev/null; then |
| 6 | echo "Please install docker from https://www.docker.com/products/docker-desktop" |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | docker inspect bmcweb-base > /dev/null || |
Manojkiran Eda | 2e4c21f | 2020-10-08 11:58:36 +0530 | [diff] [blame] | 11 | docker build --network=host --no-cache --force-rm -t bmcweb-base -f Dockerfile.base . |
Adam Stankiewicz | 30c58d5 | 2020-07-22 15:34:40 +0200 | [diff] [blame] | 12 | |
| 13 | docker build -t bmcweb . |
| 14 | |
Manojkiran Eda | 2e4c21f | 2020-10-08 11:58:36 +0530 | [diff] [blame] | 15 | docker run -v "$PWD":/app -it bmcweb cp -rf /source/build/ /app/build |