summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 17cd4ec..d629150 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,22 @@
1IMAGE="docker.crute.me/websocket-proxy"
2VERSION="0.1.0"
3
1websocket-proxy: main.go sockets.go server.go client.go 4websocket-proxy: main.go sockets.go server.go client.go
2 go build -o $@ $^ 5 CGO_ENABLED=0 go build -o $@ $^
6
7.PHONY: docker
8docker: websocket-proxy
9 mkdir docker; \
10 cp Dockerfile websocket-proxy docker; \
11 cd docker; \
12 docker build -t $(IMAGE):$(VERSION) .
3 13
14.PHONY: publish
15publish:
16 docker push $(IMAGE):$(VERSION)
17 docker tag $(IMAGE):$(VERSION) $(IMAGE):latest
18 docker push $(IMAGE):latest
4 19
5.PHONY: clean 20.PHONY: clean
6clean: 21clean:
7 rm -rf websocket-proxy 22 rm -rf websocket-proxy docker