Skip to content

Commit cf84548

Browse files
optimize dockerfile
1 parent 38cee73 commit cf84548

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

v1/.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.e2e/
2+
.devspace/
3+
devspace_start.sh
4+
devspace.yaml
5+
Dockerfile
6+
Dockerfile.dev
7+
plugin.yaml
8+
README.yaml

v1/Dockerfile

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

7-
# Copy the Go Modules manifests
8-
COPY . .
7+
COPY go.mod .
8+
COPY go.sum .
99

1010
# Install dependencies
1111
RUN go mod vendor
1212

13+
# Copy the Go Modules manifests
14+
COPY . .
15+
1316
# Build cmd
1417
RUN CGO_ENABLED=0 GO111MODULE=on go build -mod vendor -o /plugin main.go
1518

v1/v1

-62.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)