### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior the below Mux HandlerFunc works well. ``` func WsHandler(rw http.ResponseWriter, r *http.Request) { ws, err := upgradeConn.Upgrade(rw, r, nil) if err != nil { log.Println(err) } log.Println("connected to the ws ep.") conn := WsConn{ws} clients[conn] = WsConnDetail{} go WsListener(&conn) } ``` ### Expected Behavior but the WS connection is not available after building the application docker image and running the container. <img width="460" alt="image" src="https://github.com/gorilla/mux/assets/40317952/88b441e6-f936-4688-a0b1-3158d0da7f31"> ### Steps To Reproduce docker-compose ```` version: "3.8" services: core: container_name: webrtc_service build: context: . dockerfile: Dockerfile image: rtc restart: always ports: - "8080:8080" networks: - admin-service ``` ### Anything else? Dockerfile ``` FROM golang:1.21.6 WORKDIR /app COPY . . ENV GO111MODULE on ENV GOPROXY https://goproxy.cn # RUN go test -v . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main presenter/main.go RUN chmod +x main CMD ["/app/main"] ```