Skip to content

Commit

Permalink
Change CGO_ENABLED to 1 / Changed TLS Version to 1.2 (#107)
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 6, 2023
1 parent 5ac2300 commit 99ed582
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 @@ -3,7 +3,7 @@
# Builder image, where we build the example.
FROM golang:1.17 AS builder
# Download prometheus/client_golang/examples/random first
RUN CGO_ENABLED=0 GOOS=linux go install -tags netgo -ldflags '-w' github.com/prometheus/client_golang/examples/random@latest
RUN CGO_ENABLED=1 GOOS=linux go install -tags netgo -ldflags '-w' github.com/prometheus/client_golang/examples/random@latest

# 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 99ed582

Please sign in to comment.