Skip to content

Instantly share code, notes, and snippets.

@cbwar
Last active September 22, 2022 07:46
Show Gist options
  • Save cbwar/e8b17459099f9e50ffc41a9649dbe86e to your computer and use it in GitHub Desktop.
Save cbwar/e8b17459099f9e50ffc41a9649dbe86e to your computer and use it in GitHub Desktop.
Makefile
.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