diff --git a/Makefile b/Makefile index 6d794d9..fcd25d6 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,8 @@ build: docker compose build docker compose run --rm view yarn + +build-prod: + sudo docker-compose -f docker-compose.prod.yml build + sudo docker-compose -f docker-compose.prod.yml run --rm view yarn + sudo docker-compose -f docker-compose.prod.yml run --rm view yarn build diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 6915aea..1f225d9 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,5 +1,11 @@ version: "3" services: + cloudflare: + image: "cloudflare/cloudflared:latest" + container_name: "nutfes-trapa-web" + volumes: ["./web/prod:/home/nonroot/.cloudflared"] + command: tunnel run + view: build: ./view container_name: "tracking-parking-view"