Skip to content

Commit

Permalink
Log requests and do not strip binary
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-hb committed May 22, 2024
1 parent eda1e1a commit 40c7bef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 40c7bef

Please sign in to comment.