Skip to content

Commit 62a4efb

Browse files
optimize dockerfile
1 parent 728b32f commit 62a4efb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

v1/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ FROM golang:1.18 as builder
44
# Make sure we use go modules
55
WORKDIR vcluster
66

7-
COPY go.mod .
8-
COPY go.sum .
9-
10-
# Install dependencies
11-
RUN go mod vendor
7+
# COPY go.mod .
8+
# COPY go.sum .
129

1310
# Copy the Go Modules manifests
1411
COPY . .
15-
12+
# Install dependencies
13+
RUN go mod vendor
1614
# Build cmd
1715
RUN CGO_ENABLED=0 GO111MODULE=on go build -mod vendor -o /plugin main.go
1816

0 commit comments

Comments
 (0)