Explorar el Código

Use variables for Makefile tagging

Christopher Hoskin hace 6 años
padre
commit
53f9071a1f
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      Makefile

+ 4 - 2
Makefile

@@ -1,12 +1,14 @@
 # Makefile
 # Makefile
 
 
+SHARELATEX_BASE_TAG := sharelatex/sharelatex-base
+SHARELATEX_TAG := sharelatex/sharelatex
 
 
 build-base:
 build-base:
-	docker build -f Dockerfile-base -t sharelatex/sharelatex-base .
+	docker build -f Dockerfile-base -t  $(SHARELATEX_BASE_TAG) .
 
 
 
 
 build-community:
 build-community:
-	docker build -f Dockerfile -t sharelatex/sharelatex .
+	docker build -f Dockerfile -t $(SHARELATEX_TAG) .
 
 
 
 
 PHONY: build-base build-community
 PHONY: build-base build-community