Skip to content

Commit 08ce308

Browse files
authored
Add Dockerfile for birdwatcher (#100)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
1 parent b9525ec commit 08ce308

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
From golang:1.18-buster as build
2+
3+
WORKDIR /birdwatcher
4+
COPY . .
5+
6+
WORKDIR /birdwatcher
7+
RUN apt update && apt install gcc
8+
RUN GOPROXY="https://goproxy.cn,direct" go build -o /birdwatcher/bin/birdwatcher -tags WKAFKA main.go
9+
10+
FROM debian:buster
11+
COPY --from=build /birdwatcher/bin/birdwatcher /birdwatcher/birdwatcher
12+
13+
CMD ["sleep", "infinity"]

0 commit comments

Comments
 (0)