Skip to content

Commit dff000a

Browse files
committed
move 'go mod vendor' line in Dockerfile
1 parent 2c9fcb5 commit dff000a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ RUN git init && \
6969
# Download dependiencies before copying the source so they will be cached
7070
COPY go.mod go.sum ./
7171
RUN go mod download
72-
RUN go mod vendor
7372

7473

7574
###############################################################################
@@ -82,6 +81,9 @@ LABEL image="build"
8281
# Copy the source
8382
COPY . ./
8483

84+
# Copy packages into vendor
85+
RUN go mod vendor
86+
8587
# Build the binaries
8688
RUN go build -o puller model-serving-puller/main.go
8789
RUN go build -o triton-adapter model-mesh-triton-adapter/main.go

0 commit comments

Comments
 (0)