Update deployment

This commit is contained in:
PhatPhuckDave
2024-07-21 19:34:51 +02:00
parent 97e107b973
commit d7d9af25dc
3 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
main.exe
echo-ip.tar

View File

@@ -1 +1,3 @@
go build main && docker build -t echo-ip .
go build main
docker build -t echo-ip .
docker save -o echo-ip.tar echo-ip

View File

@@ -30,7 +30,7 @@ func main() {
fullIP := r.RemoteAddr
parts := strings.Split(fullIP, ":")
ip := parts[0]
fmt.Fprintf(w, ip)
fmt.Fprint(w, ip)
})
http.ListenAndServe(":8080", nil)