mirror of
https://github.com/zhaarey/apple-music-alac-atmos-downloader.git
synced 2026-01-15 14:22:53 -03:00
15 lines
452 B
Docker
15 lines
452 B
Docker
ARG GOVERSION=1.25.5
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:${GOVERSION}-alpine AS builder
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
WORKDIR /app
|
|
RUN --mount=type=cache,target=/go/pkg/mod/ \
|
|
--mount=type=bind,target=. \
|
|
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /bin/apple-music-dl main.go
|
|
|
|
FROM gpac/ubuntu
|
|
COPY --from=builder /bin/apple-music-dl /usr/local/bin/apple-music-dl
|
|
WORKDIR /app
|
|
ENTRYPOINT ["/usr/local/bin/apple-music-dl"]
|