Skip to content

Commit

Permalink
docs: update deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Jan 7, 2025
1 parent d41c036 commit 57708f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/en/guide/deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ FROM python:3.11-slim

WORKDIR /labelu

RUN pip3 install labelu==1.1.4
RUN pip3 install labelu

ENV MEDIA_HOST http://localhost:8000

Expand All @@ -23,11 +23,11 @@ CMD ["sh", "-c", "labelu --host=0.0.0.0 --media-host=$MEDIA_HOST"]
### Build Image

```bash
docker build -t labelu:1.1.4 .
docker build -t labelu:latest .
```

### Run Container

```bash
docker run -d -p 8000:8000 --name labelu labelu:1.1.4
docker run -d -p 8000:8000 --name labelu labelu:latest
```
6 changes: 3 additions & 3 deletions docs/zh/guide/deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ FROM python:3.11-slim

WORKDIR /labelu

RUN pip3 install labelu==1.1.4
RUN pip3 install labelu

ENV MEDIA_HOST http://localhost:8000

Expand All @@ -23,11 +23,11 @@ CMD ["sh", "-c", "labelu --host=0.0.0.0 --media-host=$MEDIA_HOST"]
### 构建镜像

```bash
docker build -t labelu:1.1.4 .
docker build -t labelu:latest .
```

### 运行容器

```bash
docker run -d -p 8000:8000 --name labelu labelu:1.1.4
docker run -d -p 8000:8000 --name labelu labelu:latest
```

0 comments on commit 57708f9

Please sign in to comment.