Skip to content

Commit

Permalink
Add Dockerfile for birdwatcher (#100)
Browse files Browse the repository at this point in the history
Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Feb 22, 2023
1 parent b9525ec commit 08ce308
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
From golang:1.18-buster as build

WORKDIR /birdwatcher
COPY . .

WORKDIR /birdwatcher
RUN apt update && apt install gcc
RUN GOPROXY="https://goproxy.cn,direct" go build -o /birdwatcher/bin/birdwatcher -tags WKAFKA main.go

FROM debian:buster
COPY --from=build /birdwatcher/bin/birdwatcher /birdwatcher/birdwatcher

CMD ["sleep", "infinity"]

0 comments on commit 08ce308

Please sign in to comment.