We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2190781 commit 2900230Copy full SHA for 2900230
Makefile
@@ -1,5 +1,5 @@
1
IMAGE_ID := ghcr.io/hexlet-components/rest-api-example
2
-PORT := 8080
+PORT := 5000
3
4
setup:
5
npm ci
@@ -30,7 +30,7 @@ docker-build:
30
31
docker-run:
32
docker rm -f rest-api-example
33
- 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)
34
35
docker-sh:
36
docker run -e PORT=$(PORT) -it --entrypoint sh $(IMAGE_ID)
README.md
@@ -11,7 +11,7 @@ See [Makefile](./Makefile)
11
12
```bash
13
make docker-build
14
-make docker-run # Open http://localhost:8080
+make docker-run # Open http://localhost:5000
15
```
16
17
---
0 commit comments