Skip to content

Commit

Permalink
Change CGO_ENABLED to 1 / Changed TLS Version to 1.2
Browse files Browse the repository at this point in the history
Signed-off-by: Disaiah Bennett <dbennett@redhat.com>
  • Loading branch information
dislbenn committed Jul 5, 2023
1 parent b924cf1 commit ab688e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devenv/docker/blocks/prometheus_random_data/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /go/src/github.com/prometheus/client_golang
WORKDIR /go/src/github.com/prometheus/client_golang/prometheus
RUN go install -d
WORKDIR /go/src/github.com/prometheus/client_golang/examples/random
RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w'
RUN CGO_ENABLED=1 GOOS=linux go build -a -tags netgo -ldflags '-w'

# Final image.
FROM scratch
Expand Down
2 changes: 1 addition & 1 deletion devenv/docker/blocks/slow_proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:latest as builder
ADD main.go /
WORKDIR /
RUN go mod init proxy
RUN CGO_ENABLED=0 go build -o main .
RUN CGO_ENABLED=1 go build -o main .

FROM scratch
WORKDIR /
Expand Down

0 comments on commit ab688e1

Please sign in to comment.