Skip to content

Commit 2900230

Browse files
committed
fix commands
1 parent 2190781 commit 2900230

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE_ID := ghcr.io/hexlet-components/rest-api-example
2-
PORT := 8080
2+
PORT := 5000
33

44
setup:
55
npm ci
@@ -30,7 +30,7 @@ docker-build:
3030

3131
docker-run:
3232
docker rm -f rest-api-example
33-
docker run -p $(PORT):$(PORT) --name rest-api-example $(IMAGE_ID)
33+
docker run -e PORT=$(PORT) -p $(PORT):$(PORT) --name rest-api-example $(IMAGE_ID)
3434

3535
docker-sh:
3636
docker run -e PORT=$(PORT) -it --entrypoint sh $(IMAGE_ID)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ See [Makefile](./Makefile)
1111

1212
```bash
1313
make docker-build
14-
make docker-run # Open http://localhost:8080
14+
make docker-run # Open http://localhost:5000
1515
```
1616

1717
---

0 commit comments

Comments
 (0)