diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4cb2ea1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM golang:1.15 as builder +COPY . /castor +RUN cd /castor && CGO_ENABLED=0 go build + +FROM scratch +COPY --from=builder /castor/castor castor +CMD ["/castor"] \ No newline at end of file