mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-09-15 17:03:19 -05:00
Streamline Makefile, making local_art directory a volume mount instead of a COPY
This commit is contained in:
@@ -17,6 +17,9 @@ dev/*
|
||||
/.idea
|
||||
/.git
|
||||
|
||||
# volume mounts
|
||||
local_art
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env.local
|
||||
|
@@ -4,4 +4,3 @@ FROM nginx:1.21-alpine as prod
|
||||
EXPOSE 4242
|
||||
COPY . /usr/share/nginx/html/
|
||||
COPY app.conf /etc/nginx/nginx.conf
|
||||
|
||||
|
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