Skip to content

Commit

Permalink
adding mod tidy Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lewinkedrs committed Apr 15, 2024
1 parent 89c8d27 commit 849bd19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sandbox/ho11y/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM golang:1.15-alpine AS build
FROM golang:1.16-alpine AS build
RUN go env -w GOPROXY=direct
RUN apk add --no-cache git
RUN apk update && apk add ca-certificates
WORKDIR /usr/src/app
COPY . .
RUN go mod tidy
RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"'

FROM amazonlinux:2
Expand Down

0 comments on commit 849bd19

Please sign in to comment.