qbittorrent-multiplexer/Dockerfile
2025-02-06 19:24:54 +05:30

20 lines
378 B
Docker

FROM golang:alpine AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN \
CGO_ENABLED=0 \
GOOS=linux \
go build -a -installsuffix cgo -o qbittorrent-multiplexer .
FROM alpine:latest
WORKDIR /root
# Copy the binary from the builder stage
COPY --from=builder /src/qbittorrent-multiplexer .
ENTRYPOINT ["/root/qbittorrent-multiplexer"]