Skip to content

Commit

Permalink
Update Dockerfile.vk
Browse files Browse the repository at this point in the history
  • Loading branch information
dciangot authored Jul 2, 2024
1 parent 1d37a83 commit 956cab7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile.vk
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ WORKDIR /app
COPY .. .

ARG VERSION
ENV KUBELET_VERSION=${VERSION}

ENV GOMODCACHE="/go/pkg/mod"
ENV GOCACHE="/go/build-cache"

RUN mkdir -p $GOMODCACHE && mkdir -p $GOCACHE


RUN bash -c "./cmd/virtual-kubelet/set-version.sh"
RUN bash -c "KUBELET_VERSION=${VERSION} ./cmd/virtual-kubelet/set-version.sh"
RUN go mod tidy
RUN CGO_ENABLED=0 GOOS=linux go build -o bin/vk cmd/virtual-kubelet/main.go

Expand Down

0 comments on commit 956cab7

Please sign in to comment.