Files
torrent-indexer/Dockerfile

19 lines
309 B
Docker
Raw Normal View History

2024-03-10 13:59:44 +00:00
FROM golang:1.21 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
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /go/src/app/app .
CMD ["/root/app"]