Explorar el Código

Allow easy Docker port override

Frans de Jonge hace 6 años
padre
commit
651cfd0daa
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      Makefile

+ 3 - 1
Makefile

@@ -4,6 +4,8 @@ ifndef TAG
 	TAG=dev-alpine
 endif
 
+PORT ?= 8080
+
 ifeq ($(findstring alpine,$(TAG)),alpine)
 	DOCKERFILE=Dockerfile-Alpine
 else ifeq ($(findstring arm,$(TAG)),arm)
@@ -24,7 +26,7 @@ start: ## Start the development environment (use Docker)
 	docker run \
 		--rm \
 		-v $(shell pwd):/var/www/FreshRSS:z \
-		-p 8080:80 \
+		-p $(PORT):80 \
 		-e FRESHRSS_ENV=development \
 		--name freshrss-dev \
 		freshrss/freshrss:$(TAG)