improve: fix README

This commit is contained in:
h z
2024-12-10 21:28:07 +00:00
parent 76b64716c2
commit a9d9b4e8f0

View File

@@ -113,18 +113,15 @@ The application will be accessible at `http://localhost:3000` by default.
## Docker Deployment
### Image
Pull the latest Docker image from the repository:
Pull the latest Docker image from the registry:
```bash
docker pull git.hangman-lab.top/hzhang/hangman-lab-frontend:latest
```
### Building the docker Image
```bash
docker build -t hangman-lab-frontend:latest .
docker pull git.hangman-lab.top/hzhang/hangmanlab-frontend:latest
```
### Running the Docker Container
Ensure your backend service (e.g., running at http://localhost:5000) is up and accessible. Then, run the Docker container:
```bash
docker run -d -p 80:80 --name hangman-lab-frontend hangman-lab-frontend:latest
docker run -d -p 80:80 --name hangmanlab-frontend hangmanlab-frontend:latest
```
#### Note: