Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit d2d02e6

Browse files
committed
Makefile allow to use external docker image instead of building locally via DOCKER_IMAGE env var
1 parent 5558800 commit d2d02e6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,23 @@ else
55
FORCE_WRITE := false
66
endif
77

8+
9+
10+
11+
812
SHELL := /bin/bash
913

1014
.PHONY: build generate serve clean reset-permissions confirm-clean env-file-exists ca-key-exists
1115

1216
# Build a new docker image for the CA bot
1317
build: reset-permissions
18+
ifdef DOCKER_IMAGE
19+
docker pull $(DOCKER_IMAGE)
20+
docker tag $(DOCKER_IMAGE) ca
21+
else
1422
docker build -t ca -f Dockerfile-ca ..
23+
endif
24+
1525

1626
# Generate a new CA key
1727
generate: env-file-exists build

0 commit comments

Comments
 (0)