[Docker] Web App을 Docker Image로 빌드하기
DevOps/Docker2022. 5. 12. 22:58[Docker] Web App을 Docker Image로 빌드하기

✔️ Web App Golang의 net/http 패키지를 이용해 Web App을 만들어보자 Writing Web Applications - The Go Programming Language net/http package : Web App을 만들 때 사용하는 패키지 //go:build ignore package main import ( # 패키지를 추가하는 부분 "fmt" "log" "net/http" # 웹 서버 작동을 위한 패키지 ) # HandleFunc()가 호출 func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:]) } func main() { http.H..

image