node-labeler/Dockerfile
Mohammed Naser ee03a95ab2 Build multi-arch images
Change-Id: If4ba053b7cf5a704afcb3f7e4a19aeed8440f3d9
2020-07-24 16:06:13 -04:00

11 lines
287 B
Docker

FROM golang:1.13 AS builder
WORKDIR /go/src/app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build
# NOTE(mnaser): https://github.com/containers/skopeo/issues/991
# FROM scratch
FROM debian:stable-slim
COPY --from=builder /go/src/app/node-labeler /node-labeler
ENTRYPOINT ["/node-labeler"]