makefile: docker build syntax

This commit is contained in:
Christophe Siraut 2021-03-26 11:55:50 +01:00
parent 6e80afca8b
commit 26531f81f4

View File

@ -1,8 +1,8 @@
GEONATURE_CITIZEN_TAG = 0.99.1-dev
.PHONY: start init
.PHONY: start init dev
dev: init
docker image inspect geonature >/dev/null 2>&1 || docker build -f vendor/GeoNature-citizen/Dockerfile -t geonature
docker image inspect geonature >/dev/null 2>&1 || docker build vendor/GeoNature-citizen -t geonature
docker container inspect geonature >/dev/null 2>&1 || (\
docker run -it -d -p 8080:80 --name geonature geonature &&\
docker cp patches/settings.ini geonature:config/ &&\