You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to deploy web app on (xx.xx.xx.xx) Server which has Virtual Machine.
Have add inbound rule in server firewall on port 5678 which mapped to VM's 80 port.
The kamal-proxy is running on 80 -> 80 port & 443 -> 443 port.
The application container is running on port 8080 (I guess this is container port).
applicaiton:
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", HelloServer)
http.ListenAndServe(":8080", nil)
}
func HelloServer(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Html for hello world")
}
Dockerfile:
#The build stage
FROM golang:1.23 as builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo HelloWorld.go
#The run stage
FROM scratch
WORKDIR /app
COPY --from=builder /app/HelloWorld .
EXPOSE 8080
CMD ["./HelloWorld"]
I am trying to deploy web app on (xx.xx.xx.xx) Server which has Virtual Machine.
Have add inbound rule in server firewall on port 5678 which mapped to VM's 80 port.
The kamal-proxy is running on 80 -> 80 port & 443 -> 443 port.
The application container is running on port 8080 (I guess this is container port).
applicaiton:
Dockerfile:
Deploy.yml
The text was updated successfully, but these errors were encountered: