diff --git a/Dockerfile b/Dockerfile index eb59e2d..885aaa8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22 as build +FROM golang:1.22 AS build WORKDIR /go/src/app COPY go.mod go.mod @@ -8,7 +8,7 @@ COPY internal internal RUN go mod download -RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/app ./cmd/main.go +RUN CGO_ENABLED=0 go build -o /go/bin/app ./cmd/main.go FROM gcr.io/distroless/static-debian12 diff --git a/internal/server/server.go b/internal/server/server.go index fa40f8b..8adc4b8 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -38,6 +38,7 @@ func InitializeServer() { store.CaptureRequest(r) prepareRequest(r) + log.Println("Incoming request: " + r.RequestURI) // Forward the request to the target host reverseProxy.ServeHTTP(w, r) })