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