Update Dockerfile

This commit is contained in:
gigirassy
2026-03-30 21:03:46 +02:00
parent ee6446195c
commit b6cd03ba6e
+1 -3
View File
@@ -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