mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-11-06 00:50:41 -06:00
Streamline Makefile, making local_art directory a volume mount instead of a COPY
This commit is contained in:
19
Makefile
19
Makefile
@@ -1,2 +1,19 @@
|
||||
.PHONY: start stop
|
||||
|
||||
start:
|
||||
docker build -f Dockerfile --target "prod" . -t "cardconjurer-client" && docker run -dit -h 127.0.0.1 -p 4242:4242 "cardconjurer-client"
|
||||
docker build \
|
||||
--file Dockerfile \
|
||||
--target "prod" \
|
||||
--tag "cardconjurer-client" \
|
||||
. && \
|
||||
docker run \
|
||||
--detach \
|
||||
--hostname 127.0.0.1 \
|
||||
--publish 4242:4242 \
|
||||
--name cardconjurer-client \
|
||||
--volume ./:/usr/share/nginx/html/:ro \
|
||||
"cardconjurer-client"
|
||||
|
||||
stop:
|
||||
docker stop cardconjurer-client && \
|
||||
docker rm cardconjurer-client
|
||||
|
||||
Reference in New Issue
Block a user