feat(build): crate `docker-run` target

Create a `docker-run` `make` target for opening a shell in an Alpine
container for development.
This commit is contained in:
Christopher Allen Lane 2022-07-04 13:13:27 -04:00
parent 35262df4f2
commit a8c2c396ed
1 changed files with 5 additions and 0 deletions

View File

@ -180,6 +180,11 @@ prepare: | $(dist_dir) clean generate vendor fmt lint vet test
docker-setup: docker-setup:
$(DOCKER) build -t $(docker_image) -f Dockerfile . $(DOCKER) build -t $(docker_image) -f Dockerfile .
## docker-run: shell into the development docker container
.PHONY: docker-run
docker-run:
$(DOCKER) run -v `pwd`:/app -ti $(docker_image) sh
## docker-sh: shell into the docker development container ## docker-sh: shell into the docker development container
.PHONY: docker-sh .PHONY: docker-sh
docker-sh: docker-sh: