We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2afa2 commit a78f3efCopy full SHA for a78f3ef
Makefile
@@ -2,6 +2,7 @@
2
.DEFAULT: help
3
4
tag="fmriprep"
5
+BASE_IMAGE := $(shell grep BASE_IMAGE= Dockerfile | cut -d= -f2)
6
7
help:
8
@echo "Premade recipes"
@@ -10,8 +11,11 @@ help:
10
11
@echo "\tBuilds a docker image from source. Defaults to 'fmriprep' tag."
12
13
-docker-build:
14
+docker-build: docker-base
15
docker build --rm -t $(tag) \
16
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
17
--build-arg VCS_REF=`git rev-parse --short HEAD` \
18
--build-arg VERSION=`hatch version` .
19
+
20
+docker-base:
21
+ docker pull $(BASE_IMAGE) || docker build -t $(BASE_IMAGE) -f Dockerfile.base .
0 commit comments