From 1555f893053bb4982315c4854f2c88210c992351 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Wed, 16 Sep 2020 15:44:26 -0400 Subject: [PATCH] basic dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile 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