Skip to content

Commit 3c2ca36

Browse files
committed
Merge branch 'dockerfile' into enable-sasl-v1
2 parents 99a05b1 + df8802c commit 3c2ca36

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Dockerfile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM golang:1.18 as BuildStage
2+
3+
# Set destination for COPY
4+
WORKDIR /app
5+
6+
# Download Go modules
7+
COPY go.mod go.sum ./
8+
RUN go mod download
9+
COPY . ./
10+
#RUN ls --recursive ./
11+
12+
# Build
13+
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-w -s" -o /kaf ./cmd/kaf
14+
#RUN ls --recursive ./
15+
#RUN ls --recursive /kaf
16+
17+
FROM registry.access.redhat.com/ubi9/ubi:9.3
18+
19+
WORKDIR /
20+
21+
COPY --from=BuildStage /kaf /bin/kaf
22+
23+
USER 1001
24+
25+
# Run
26+
CMD ["/bin/kaf"]

0 commit comments

Comments
 (0)