diff --git a/Dockerfile b/Dockerfile index 3737985..b54ffb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,19 +4,17 @@ ARG TARGETARCH WORKDIR /src COPY go.mod ./ -RUN apk add --no-cache ca-certificates git go && go install git.maid.zone/stuff/soundcloakctl@latest && go mod download && go mod download git.maid.zone/stuff/soundcloakctl +RUN apk add --no-cache ca-certificates git go && go mod download RUN go env -w GOPROXY=direct COPY . . -RUN go mod tidy && go tool soundcloakctl -nozstd -notable precompress RUN CGO_ENABLED=0 \ GOOS=${TARGETOS:-linux} \ GOARCH=${TARGETARCH:-amd64} \ go build -trimpath \ -ldflags="-s -w -extldflags '-static' -buildid=''" \ - -gcflags="all=-l" \ -o /pinata ./main.go