Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
Introduce variable to set build container engine.
Build with podman by default.

Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
  • Loading branch information
elfosardo committed Jun 21, 2024
1 parent 4731ff8 commit 10d94ac
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
.PHONY: help
SHELL=/usr/bin/env bash -o errexit

.PHONY: help build

export CONTAINER_ENGINE ?= podman

help:
@echo "Targets:"
@echo " docker -- build the docker image"
@echo " build -- build the docker image"

build:
$(CONTAINER_ENGINE) build . -f Dockerfile

.PHONY: docker
docker:
docker build . -f Dockerfile

0 comments on commit 10d94ac

Please sign in to comment.