this repo has no description
1FROM golang:latest AS builder
2
3WORKDIR /app
4
5COPY . .
6RUN go mod download
7COPY . .
8
9#compiling for Pi at the moment
10RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -a -installsuffix cgo -o tangled-alert-bot ./cmd/.
11
12FROM alpine:latest
13
14RUN apk --no-cache add ca-certificates
15
16WORKDIR /root/
17COPY --from=builder /app/tangled-alert-bot .
18
19CMD ["./tangled-alert-bot"]