Skip to content

Commit

Permalink
Update cmd/training-operator.v2alpha1/Dockerfile
Browse files Browse the repository at this point in the history
Co-authored-by: Yuki Iwai <[email protected]>
  • Loading branch information
andreyvelich and tenzen-y committed Aug 15, 2024
1 parent c6f1114 commit 73ccbb3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cmd/training-operator.v2alpha1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@
FROM golang:1.22 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download

# Copy the go source
COPY cmd/ cmd/
COPY pkg/ pkg/

# Build
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -o manager cmd/training-operator.v2alpha1/main.go

Expand Down

0 comments on commit 73ccbb3

Please sign in to comment.