# Build Docker Images

The docker images are prepared for deploying with backend images by k8s.

## Build image for cn region

```shell
$ docker build -f docker/Dockerfile-cn -t clinic-ui:cn .
```

Or

```shell
$ REACT_APP_REGION=cn pnpm build
$ docker build -f docker/Dockerfile -t clinic-ui:cn .
```

## Build image for global region

```shell
$ docker build -f docker/Dockerfile-global -t clinic-ui:global .
```

Or

```shell
$ REACT_APP_REGION=global pnpm build
$ docker build -f docker/Dockerfile -t clinic-ui:global .
```

## Run image

```shell
$ docker run -idt -p 8080:80 clinic-ui:cn
```
