Skip to content

Commit 079aeb0

Browse files
committed
fix Dockerfile for go 1.18
1 parent 506c55a commit 079aeb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.15.4-alpine3.12 as build
1+
FROM golang:1.18.2 as build
22

33
COPY ./ /go/src/github.com/chatwork/sendgrid-stats-exporter
44
WORKDIR /go/src/github.com/chatwork/sendgrid-stats-exporter
@@ -7,12 +7,12 @@ RUN go mod download \
77
# && go test ./... \
88
&& CGO_ENABLED=0 GOOS=linux go build -o /bin/exporter
99

10-
FROM alpine:3.12
10+
FROM alpine:3.15
1111

1212
RUN apk --no-cache add ca-certificates \
1313
&& addgroup exporter \
1414
&& adduser -S -G exporter exporter
1515
USER exporter
1616
COPY --from=build /bin/exporter /bin/exporter
1717

18-
ENTRYPOINT [ "/bin/exporter" ]
18+
ENTRYPOINT [ "/bin/exporter" ]

0 commit comments

Comments
 (0)