Skip to content

Commit

Permalink
fix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot committed Oct 25, 2024
1 parent 2190781 commit 2900230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
IMAGE_ID := ghcr.io/hexlet-components/rest-api-example
PORT := 8080
PORT := 5000

setup:
npm ci
Expand Down Expand Up @@ -30,7 +30,7 @@ docker-build:

docker-run:
docker rm -f rest-api-example
docker run -p $(PORT):$(PORT) --name rest-api-example $(IMAGE_ID)
docker run -e PORT=$(PORT) -p $(PORT):$(PORT) --name rest-api-example $(IMAGE_ID)

docker-sh:
docker run -e PORT=$(PORT) -it --entrypoint sh $(IMAGE_ID)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See [Makefile](./Makefile)

```bash
make docker-build
make docker-run # Open http://localhost:8080
make docker-run # Open http://localhost:5000
```

---
Expand Down

0 comments on commit 2900230

Please sign in to comment.