castor/Dockerfile
2022-04-24 12:43:46 -04:00

7 lines
155 B
Docker

FROM golang:1.18 as builder
COPY . /castor
RUN cd /castor && CGO_ENABLED=0 go build
FROM scratch
COPY --from=builder /castor/castor castor
CMD ["/castor"]