From 2f69883b30b41aed432ec6fa1ab9a58c2cdd74b4 Mon Sep 17 00:00:00 2001 From: Stephan van Ellewee Date: Fri, 28 Feb 2020 14:49:19 +0200 Subject: [PATCH] make docker --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 339e230..befbf56 100644 --- a/Makefile +++ b/Makefile @@ -6,13 +6,17 @@ BUILD_OPTIONS = -ldflags "-X main.Version=$(VERSION) -X main.CommitID=$(GIT_COMM gotty: main.go server/*.go webtty/*.go backend/*.go Makefile go build ${BUILD_OPTIONS} +docker: + docker build . -t gotty-bash:$(VERSION) + + .PHONY: asset asset: bindata/static/js/gotty-bundle.js bindata/static/index.html bindata/static/favicon.png bindata/static/css/index.css bindata/static/css/xterm.css bindata/static/css/xterm_customize.css go-bindata -prefix bindata -pkg server -ignore=\\.gitkeep -o server/asset.go bindata/... gofmt -w server/asset.go .PHONY: all -all: asset gotty +all: asset gotty docker bindata: mkdir bindata