mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2025-12-11 22:10:13 +01:00
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:
parent
3e1757637e
commit
1f8d4c6fbf
11 changed files with 47 additions and 15 deletions
16
Makefile
Normal file
16
Makefile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue