Last active
September 22, 2022 07:46
-
-
Save cbwar/e8b17459099f9e50ffc41a9649dbe86e to your computer and use it in GitHub Desktop.
Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: * | |
DOCKER= | |
ifeq ("$(wildcard /.dockerenv)","") | |
DOCKER=docker exec -ti my-app | |
endif | |
build: | |
${DOCKER} composer install | |
${DOCKER} yarn | |
${DOCKER} yarn dev | |
run: | |
docker-compose up --build -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment