* chg: chore: bump golang and deps * chg: chore: add riscv64 support * chg: chore: update goreleaser * chg: chore: disable cgo * chg: chore: tidy up deps * chg: chore: add build tags
20 lines
349 B
Docker
20 lines
349 B
Docker
FROM golang:1.24 AS builder
|
|
|
|
WORKDIR /go/src/app
|
|
COPY . .
|
|
|
|
RUN go get -d -v ./...
|
|
RUN go install -v ./...
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
|
|
|
FROM alpine:latest
|
|
LABEL maintainer="felipevm97@gmail.com"
|
|
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
WORKDIR /root/
|
|
|
|
COPY --from=builder /go/src/app/app .
|
|
|
|
CMD ["/root/app"]
|