Files
torrent-indexer/Dockerfile
Felipe Marinho 4d6cfb8668 Chore/update golang to 1.24 + add riscv64 support (#40)
* 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
2025-07-29 13:22:21 -03:00

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"]