Skip to content

Commit 0670243

Browse files
full dockerfile
1 parent 62a4efb commit 0670243

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

v1/.dockerignore1

Lines changed: 0 additions & 6 deletions
This file was deleted.

v1/Dockerfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,19 @@ FROM golang:1.18 as builder
33

44
# Make sure we use go modules
55
WORKDIR vcluster
6-
7-
# COPY go.mod .
8-
# COPY go.sum .
9-
106
# Copy the Go Modules manifests
117
COPY . .
128
# Install dependencies
139
RUN go mod vendor
1410
# Build cmd
1511
RUN CGO_ENABLED=0 GO111MODULE=on go build -mod vendor -o /plugin main.go
1612

17-
# # we use alpine for easier debugging
18-
# FROM alpine
13+
# we use alpine for easier debugging
14+
FROM alpine
1915

20-
# # Set root path as working directory
21-
# WORKDIR /
16+
# Set root path as working directory
17+
WORKDIR /
2218

23-
# COPY --from=builder /plugin .
19+
COPY --from=builder /plugin .
2420

25-
# ENTRYPOINT ["/plugin"]
21+
ENTRYPOINT ["/plugin"]

0 commit comments

Comments
 (0)