mirror of https://github.com/cheat/cheat.git
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:
parent
35262df4f2
commit
a8c2c396ed
5
Makefile
5
Makefile
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue