mirror of
https://codeberg.org/gigirassy/pinata
synced 2026-08-30 23:37:40 +00:00
Update Dockerfile
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user