Skip to content

Commit

Permalink
Merge branch 'dockerfile' into enable-sasl-v1
Browse files Browse the repository at this point in the history
  • Loading branch information
k-wall committed Dec 13, 2023
2 parents 99a05b1 + df8802c commit 3c2ca36
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM golang:1.18 as BuildStage

# Set destination for COPY
WORKDIR /app

# Download Go modules
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
#RUN ls --recursive ./

# Build
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-w -s" -o /kaf ./cmd/kaf
#RUN ls --recursive ./
#RUN ls --recursive /kaf

FROM registry.access.redhat.com/ubi9/ubi:9.3

WORKDIR /

COPY --from=BuildStage /kaf /bin/kaf

USER 1001

# Run
CMD ["/bin/kaf"]

0 comments on commit 3c2ca36

Please sign in to comment.