Skip to content

Commit

Permalink
fix(Dockerfile): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylvln committed Mar 4, 2022
1 parent 4737c59 commit 820ae3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ COPY go.mod go.mod
COPY go.sum go.sum
RUN go mod download

COPY main.go main.go
COPY api/ api/
COPY cmd cmd/
COPY controllers/ controllers/
COPY internal/ internal/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager cmd/shulker-operator/main.go

FROM gcr.io/distroless/static:nonroot
WORKDIR /
Expand Down

0 comments on commit 820ae3d

Please sign in to comment.