castor/Dockerfile
2020-09-16 15:44:26 -04:00

7 lines
155 B
Docker

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