FROM golang:latest AS builder WORKDIR /app COPY . . RUN go mod download COPY . . #compiling for Pi at the moment RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -a -installsuffix cgo -o tangled-alert-bot ./cmd/. FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR /root/ COPY --from=builder /app/tangled-alert-bot . CMD ["./tangled-alert-bot"]