Skip to content

Commit

Permalink
Simplify Docker image naming
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisAsanaka committed Feb 19, 2025
1 parent 6c5d220 commit a726433
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
env:
FOLDER: ./server
IMAGE: latextranscribe-server
IMAGE: latextranscribe
DOCKERFILE: Dockerfile.cpu
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ docker run -i -p 8080:80 -t latextranscribe
- Build and run the backend Docker image:
- CPU:
```sh
docker build -t latextranscribe-backend -f server/Dockerfile.cpu ./server/
docker run --name latextranscribe-backend --rm -i -p 8081:80 -t latextranscribe-backend
docker build -t latextranscribe -f server/Dockerfile.cpu ./server/
docker run --name latextranscribe --rm -i -p 8081:80 -t latextranscribe
```
- GPU (CUDA >= 12.4):
```sh
docker build -t latextranscribe-backend -f server/Dockerfile.gpu ./server/
docker run --name latextranscribe-backend --rm --gpus '"device=0"' -i -p 8081:80 -t latextranscribe-backend
docker build -t latextranscribe -f server/Dockerfile.gpu ./server/
docker run --name latextranscribe --rm --gpus '"device=0"' -i -p 8081:80 -t latextranscribe
```
- Go to `http://localhost:8081` and you should now see `The server is running!`
### Frontend
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
build:
context: ./server
dockerfile: Dockerfile.cpu
image: latextranscribe-server
image: latextranscribe
ports:
- 8081:80
command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80", "--reload"]
Expand Down

0 comments on commit a726433

Please sign in to comment.