docker build . -t intranet-front
Need to inform the backend entrypoint when running the container
docker run -it --rm -p 80:80 --env VITE_APP_ENDPOINT='backend entrypoint' intranet-front
For docker compose use enviroments to pass the backend entrypoint
environment:
VITE_APP_ENDPOINT: "backend entrypoint"