Something went wrong. Try again.
Something went wrong. Try again.
tangled-alert-bot Dockerfile
374 B · 19 lines
Dockerfile
at test-server
1234567891011121314151617181920FROM golang:latest AS builder
WORKDIR /app
COPY . .RUN go mod downloadCOPY . .
#compiling for Pi at the momentRUN 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"]