File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ COPY go.mod go.mod
10
10
COPY go.sum go.sum
11
11
# cache deps before building and copying source so that we don't need to re-download as much
12
12
# and so that source changes don't invalidate our downloaded layer
13
- RUN go mod vendor
14
13
15
14
# Copy the go source
16
15
COPY cmd/ cmd/
@@ -21,7 +20,7 @@ COPY .git/ .git/
21
20
22
21
COPY scripts/ scripts/
23
22
COPY patches/ patches/
24
- RUN bash ./scripts/patch-scheduler.sh
23
+ RUN go mod vendor && bash ./scripts/patch-scheduler.sh
25
24
26
25
# Build
27
26
# the GOARCH has not a default value to allow the binary be built according to the host where the command
@@ -38,3 +37,6 @@ COPY --from=builder /workspace/manager .
38
37
USER 65532:65532
39
38
40
39
ENTRYPOINT ["/manager" ]
40
+
41
+ # Run locally
42
+ # docker build --build-arg TARGETOS=linux --build-arg TARGETARCH=amd64 --build-arg GO_LDFLAGS="-X 'github.com/NexusGPU/tensor-fusion/internal/version.BuildVersion=dev-test'" -t tensorfusion/tensor-fusion-operator:tmp-test . -f dockerfile/operator.Dockerfile
You can’t perform that action at this time.
0 commit comments