basic dockerfile

This commit is contained in:
David 2020-09-16 15:44:26 -04:00
parent b2d6756605
commit 1555f89305

7
Dockerfile Normal file
View File

@ -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"]