Skip to content

Commit 279116f

Browse files
committed
fix
1 parent af8b316 commit 279116f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-and-run.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Build the Docker image
16-
run: sudo docker build . --file Dockerfile --tag backend
16+
run: sudo docker build -t backend .
1717
- name: Run the Docker container on port 8000
18-
run: sudo docker run -d -p 8000:8000 backend
18+
run: sudo docker stop backend && sudo docker run -d -p 8000:8000 backend

0 commit comments

Comments
 (0)