aboutsummaryrefslogtreecommitdiff
path: root/nginx-common/Makefile
blob: 4c3db1852f91c5c3020200c3c714c524d273980e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
IMAGE=docker.crute.me/nginx-common:latest

all:
	CGO_ENABLED=0 go build -o nginx_bootstrap main.go
	docker pull nginx:mainline-alpine
	docker build -t $(IMAGE) .
	rm nginx_bootstrap

all-no-cache:
	docker pull nginx:mainline-alpine
	docker build --no-cache -t $(IMAGE) .

run:
	docker run -d \
		-e UNIFI_UID=1001 \
		-e UNIFI_GID=1001 \
		-p 8080:8080 \
		-p 8443:8443 \
		$(IMAGE)

publish:
	docker push $(IMAGE)