From c1b470bb7b5c57f515af30c2469c17dc9fec6b31 Mon Sep 17 00:00:00 2001 From: Sergey Grebenshchikov Date: Sat, 27 Oct 2018 16:33:45 +0200 Subject: [PATCH] What a shame. --- .dockerignore | 3 +++ Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.dockerignore b/.dockerignore index ea4a2e7..19e0d69 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,5 @@ * !/patch +!/vendor +!/main.go +!/static diff --git a/Makefile b/Makefile index 82081e9..411da5f 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,9 @@ bin/$(APP): $(GOFILES) static/patched docker: $(GOFILES) Dockerfile static/patched docker build -t "$(APP)":latest -t "$(APP)":$(VERSION) -f Dockerfile . +bin/$(APP)-$(VERSION)-docker-image.tar.gz: docker + docker save "$(APP)":$(VERSION) -o "bin/$(APP)-$(VERSION)-docker-image.tar.gz" + static/patched: Dockerfile.patch docker build -t "$(APP)-patch" -f Dockerfile.patch . docker run --rm -i -a stdout -a stderr -v "$$PWD/static":"/static" -w /static "$(APP)-patch" "$(VANILLA)" delta patched