torrent fix
This commit is contained in:
parent
57ada71d36
commit
e517332a65
26 changed files with 2240 additions and 850 deletions
|
@ -11,7 +11,10 @@ COPY ./src ./src
|
|||
COPY ./cmd ./cmd
|
||||
|
||||
ARG TARGETOS TARGETARCH
|
||||
RUN --mount=type=cache,mode=0777,target=/go/pkg/mod CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -tags timetzdata -o /tstor ./cmd/tstor/main.go
|
||||
RUN --mount=type=cache,mode=0777,target=/go/pkg/mod \
|
||||
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
|
||||
go build -tags timetzdata \
|
||||
-o /tstor ./cmd/tstor/main.go
|
||||
|
||||
FROM scratch
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue