mirror of
https://github.com/chialab/docker-php.git
synced 2026-08-24 10:13:24 -05:00
refactor: use build args for base images
This commit is contained in:
@@ -40,11 +40,7 @@ endif
|
||||
|
||||
build:
|
||||
@echo " =====> Building $(IMAGE):$(VERSION)..."
|
||||
@dir="$(subst -,/,$(VERSION))"; \
|
||||
if [[ "$(VERSION)" == 'latest' ]]; then \
|
||||
dir='.'; \
|
||||
fi; \
|
||||
docker image build --quiet -t $(IMAGE):$(VERSION) $${dir}
|
||||
docker image build --quiet --build-arg 'BASE_IMAGE=$(VERSION)' -t $(IMAGE):$(VERSION) .
|
||||
|
||||
test:
|
||||
@echo -e "=====> Testing loaded extensions... \c"
|
||||
|
||||
Reference in New Issue
Block a user