web: Update Dockerfile, Makefile

This commit is contained in:
2025-11-12 12:26:05 -06:00
parent c9e18d4fe4
commit 8fe330857d
6 changed files with 42 additions and 15 deletions

View File

@@ -1,5 +1,14 @@
docker-build:
docker build . -t ucjl-frontend
docker build . \
--build-arg REACT_APP_BACKEND_URL=https://ucjl.axavier.org/api \
-t ucjl-frontend
docker-run:
docker run -e REACT_APP_BACKEND_URL=http://localhost:9000/api --publish 3000:3000 --rm -it ucjl-frontend
docker stop ucjl-frontend
docker rm ucjl-frontend
docker run \
--detach \
--network custom \
--restart always \
--name ucjl-frontend \
ucjl-frontend