remove cgo from Rockerfile & rename executable

This commit is contained in:
2026-02-20 20:44:15 +03:00
parent 891ad8a050
commit 0d18ae0324

View File

@@ -11,21 +11,19 @@ RUN pnpm build
FROM golang:1.26-alpine AS api-builder
WORKDIR /app
RUN apk add --no-cache gcc musl-dev
COPY go.mod go.sum ./
RUN go mod verify && go mod download
COPY . .
COPY --from=web-builder /app/dist ./web/dist
RUN CGO_ENABLED=1 go build -o tvqueue .
RUN go build -o music-dl .
FROM alpine:latest
WORKDIR /app
COPY --from=api-builder /app/tvqueue /app/music-downloader
COPY --from=api-builder /app/music-dl /app/music-dl
EXPOSE 5000
ENTRYPOINT ["/app/music-downloader"]
ENTRYPOINT ["/app/music-dl"]