aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4ffbfcf..8470a2a 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,7 @@ export GO111MODULE=on
lint \
integration-test \
clean-integration-test \
+ docker-image \
docker-images \
docker-manifest
@@ -118,6 +119,14 @@ clean-integration-test:
@ rm miniflux-test
@ psql -U postgres -c 'drop database if exists miniflux_test;'
+docker-image:
+ cp Dockerfile Dockerfile.amd64
+ sed -i.bak "s/__BASEIMAGE_ARCH__/amd64/" Dockerfile.amd64
+ sed -i.bak "s/__MINIFLUX_VERSION__/$(VERSION)/" Dockerfile.amd64
+ sed -i.bak "s/__MINIFLUX_ARCH__/amd64/" Dockerfile.amd64
+ docker build --pull -f Dockerfile.amd64 -t $(DOCKER_IMAGE):$(VERSION) .
+ rm -f Dockerfile.amd64*
+
docker-images:
for arch in amd64 arm32v6 arm32v7 arm64v8; do \
case $${arch} in \