Run make build
only once
This commit is contained in:
parent
06e53cd9bc
commit
9b7b8e289d
@ -30,6 +30,7 @@ $ CHANNEL=stable sh get-docker.sh
|
|||||||
Fire up the container with the following.
|
Fire up the container with the following.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
$ make build # only the first time or when changing container
|
||||||
$ make serve
|
$ make serve
|
||||||
```
|
```
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ stop:
|
|||||||
@docker stop $(NAME) && docker rm $(NAME) --force
|
@docker stop $(NAME) && docker rm $(NAME) --force
|
||||||
.PHONY: stop
|
.PHONY: stop
|
||||||
|
|
||||||
serve: build
|
serve:
|
||||||
@docker run \
|
@docker run \
|
||||||
--name $(NAME) \
|
--name $(NAME) \
|
||||||
-e JEKYLL_PORT=$(PORT) \
|
-e JEKYLL_PORT=$(PORT) \
|
||||||
|
Reference in New Issue
Block a user