|
|
|
@ -5,7 +5,9 @@ COMMIT_SHA := $(shell git rev-parse --short=11 HEAD)
|
|
|
|
|
build: clobber .bin/client/public .bin/gopherhole
|
|
|
|
|
|
|
|
|
|
dev: clean .bin/gopherhole
|
|
|
|
|
cd .bin && ./gopherhole -dns-address=:5353 -http-address=:8000
|
|
|
|
|
GOPHERHOLE_UPSTREAM="1.1.1.1:53" \
|
|
|
|
|
GOPHERHOLE_MIN_TTL="60s" \
|
|
|
|
|
.bin/gopherhole -dns-address=:5353 -http-address=:8000
|
|
|
|
|
|
|
|
|
|
client-dev:
|
|
|
|
|
docker run -it --rm --name='client-dev' \
|
|
|
|
@ -15,7 +17,7 @@ client-dev:
|
|
|
|
|
--user $${UID}:$${GID} \
|
|
|
|
|
--memory=4g \
|
|
|
|
|
-p 5000:5000 \
|
|
|
|
|
node:lts-alpine
|
|
|
|
|
node:lts-alpine -c 'npm i && npm run dev'
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
@rm -rf .bin/gopherhole .bin/client
|
|
|
|
|