Build for multiplatform

This commit is contained in:
2022-07-16 12:20:50 +01:00
parent c80f4dcc66
commit 10ac1d13b9
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.18.4-alpine3.15 as build
FROM golang:1.18.4-alpine3.16 as build
WORKDIR /build
COPY . .
RUN go get -d -v .
@@ -7,4 +7,4 @@ RUN go build -v ./cmd/aaisp_exporter
FROM alpine:3.16.0
WORKDIR /service
COPY --from=build /build/aaisp_exporter .
ENTRYPOINT ["./aaisp_exporter"]%
ENTRYPOINT ["./aaisp_exporter"]