Skip to content

Commit

Permalink
fix missing directories in docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
joejulian committed Oct 4, 2023
1 parent 577f496 commit 7fa4fae
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 11 deletions.
6 changes: 1 addition & 5 deletions src/go/k8s/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.21.0 as builder
FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.21.1 as builder

ARG TARGETARCH
ARG TARGETOS

# Copy the rpk as a close dependency
WORKDIR /workspace
COPY rpk/ rpk/

WORKDIR /workspace/k8s
# Copy the Go Modules manifests
COPY k8s/go.mod go.mod
Expand Down
10 changes: 5 additions & 5 deletions src/go/k8s/Dockerfile.dockerignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
**
!rpk/
!k8s/apis
!k8s/api
!k8s/cmd
!k8s/config
!k8s/controllers
!k8s/go.mod
!k8s/go.sum
!k8s/main.go
!k8s/hack
!k8s/internal
!k8s/pkg
!k8s/webhooks
!k8s/go.mod
!k8s/go.sum
2 changes: 1 addition & 1 deletion src/go/k8s/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/redpanda-data/redpanda/src/go/k8s

go 1.20
go 1.21

require (
github.com/Masterminds/semver/v3 v3.2.1
Expand Down
Loading

0 comments on commit 7fa4fae

Please sign in to comment.