fix comps/nginx image build content (#714)

Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
chen, suyue
2024-09-03 11:58:49 +08:00
committed by GitHub
parent c6d811ab11
commit 22d066a8d7
3 changed files with 6 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ services:
image: ${REGISTRY:-opea}/llm-tgi:${TAG:-latest}
nginx:
build:
context: GenAIComps/comps/nginx/docker
dockerfile: ./Dockerfile
context: GenAIComps
dockerfile: comps/nginx/docker/Dockerfile
extends: codetrans
image: ${REGISTRY:-opea}/nginx:${TAG:-latest}

View File

@@ -37,8 +37,8 @@ docker build -t opea/codetrans-ui:latest --build-arg https_proxy=$https_proxy --
### 5. Build Nginx Docker Image
```bash
cd GenAIComps/comps/nginx/docker
docker build -t opea/nginx:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f ./Dockerfile .
cd GenAIComps
docker build -t opea/nginx:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/nginx/docker/Dockerfile .
```
Then run the command `docker images`, you will have the following Docker Images:

View File

@@ -45,8 +45,8 @@ docker build -t opea/codetrans-ui:latest --build-arg https_proxy=$https_proxy --
### 5. Build Nginx Docker Image
```bash
cd GenAIComps/comps/nginx/docker
docker build -t opea/nginx:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f ./Dockerfile .
cd GenAIComps
docker build -t opea/nginx:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/nginx/docker/Dockerfile .
```
Then run the command `docker images`, you will have the following Docker Images: