Allow easy Docker port override

This commit is contained in:
Frans de Jonge 2019-11-12 20:33:13 +01:00
parent 874fce6656
commit 651cfd0daa
1 changed files with 3 additions and 1 deletions

View File

@ -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)