feat: containerize (#19)

* feat: containerize

* Stripping reduces binary size, fully static linking makes the binary more portable

Co-authored-by: sh0rez <me@shorez.de>
This commit is contained in:
Jeroen Op 't Eynde 2021-06-03 14:58:12 +02:00 committed by GitHub
parent 3e1757637e
commit 1f8d4c6fbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 47 additions and 15 deletions

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
.PHONY: build test push push-image
IMAGE_NAME ?= docsonnet
IMAGE_PREFIX ?= jsonnet-libs
IMAGE_TAG ?= 0.0.1
build:
docker build -t $(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG) .
test: build
push: build test push-image
push-image:
docker push $(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG)
docker push $(IMAGE_PREFIX)/$(IMAGE_NAME):latest