Building a go backend and react frontend with vite. Connect both and serve as a docker container.
docker build -t go-server .
docker run --detach --name vite-react-client -p 3000:8080 -d go-server
open browser: http://localhost:3000
Important
If you are running on an arm64
architecture you need to set the following env variable:
export DOCKER_DEFAULT_PLATFORM=linux/amd64