Skip to content

Commit c7b0990

Browse files
committed
chore: fix dockerfile
1 parent c24b200 commit c7b0990

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ FROM golang:1.19-alpine as build
33
WORKDIR ${GOPATH}/src/github.com/quintoandar
44
RUN apk update && apk add make git curl && git clone --branch main https://github.com/quintoandar/postgres_exporter.git
55
WORKDIR ${GOPATH}/src/github.com/quintoandar/postgres_exporter
6-
ENV GOARCH=amd64
76
RUN make release
87
RUN chmod +x postgres_exporter && mv postgres_exporter /tmp/postgres_exporter
98

109

11-
FROM quay.io/prometheus/busybox:latest as final
10+
FROM alpine as final
1211

1312
COPY --from=build ["/tmp/postgres_exporter", "/" ]
1413

0 commit comments

Comments
 (0)