castor/Dockerfile

7 lines
155 B
Docker
Raw Normal View History

2022-04-24 16:43:46 +00:00
FROM golang:1.18 as builder
2020-09-16 19:44:26 +00:00
COPY . /castor
RUN cd /castor && CGO_ENABLED=0 go build
FROM scratch
COPY --from=builder /castor/castor castor
CMD ["/castor"]