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)