Update dockerfile path for text2image (#1307)
Signed-off-by: Ye, Xinyu <xinyu.ye@intel.com>
This commit is contained in:
@@ -13,7 +13,7 @@ Build text-to-image service image on Xeon with below command:
|
||||
```bash
|
||||
git clone https://github.com/opea-project/GenAIComps.git
|
||||
cd GenAIComps
|
||||
docker build -t opea/text2image:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/text2image/Dockerfile .
|
||||
docker build -t opea/text2image:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/text2image/src/Dockerfile .
|
||||
```
|
||||
|
||||
### 2. Run Docker with CLI
|
||||
|
||||
@@ -13,7 +13,7 @@ Build text-to-image service image on Gaudi with below command:
|
||||
```bash
|
||||
git clone https://github.com/opea-project/GenAIComps.git
|
||||
cd GenAIComps
|
||||
docker build -t opea/text2image-gaudi:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/text2image/Dockerfile.intel_hpu .
|
||||
docker build -t opea/text2image-gaudi:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/text2image/src/Dockerfile.intel_hpu .
|
||||
```
|
||||
|
||||
### 2. Run Docker with CLI
|
||||
|
||||
@@ -9,7 +9,7 @@ services:
|
||||
https_proxy: ${https_proxy}
|
||||
no_proxy: ${no_proxy}
|
||||
context: GenAIComps
|
||||
dockerfile: comps/text2image/Dockerfile
|
||||
dockerfile: comps/text2image/src/Dockerfile
|
||||
image: ${REGISTRY:-opea}/text2image:${TAG:-latest}
|
||||
text2image-ui:
|
||||
build:
|
||||
|
||||
@@ -18,7 +18,7 @@ MODEL=stabilityai/stable-diffusion-2-1
|
||||
function build_docker_images() {
|
||||
cd $WORKPATH/docker_image_build
|
||||
if [ ! -d "GenAIComps" ] ; then
|
||||
git clone https://github.com/opea-project/GenAIComps.git
|
||||
git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout "${opea_branch:-"main"}" && cd ../
|
||||
fi
|
||||
docker compose -f build.yaml build --no-cache > ${LOG_PATH}/docker_image_build.log
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user