From 290023044f2954fbdfaee139d7bfaaaf256fa760 Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Fri, 25 Oct 2024 22:22:51 +0500 Subject: [PATCH] fix commands --- Makefile | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7f5a5cf..0d40b32 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ IMAGE_ID := ghcr.io/hexlet-components/rest-api-example -PORT := 8080 +PORT := 5000 setup: npm ci @@ -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) diff --git a/README.md b/README.md index e568ac3..5484961 100644 --- a/README.md +++ b/README.md @@ -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 ``` ---