castor/Dockerfile

7 lines
155 B
Docker
Raw Normal View History

2023-04-07 01:01:31 +00:00
FROM golang:1.20 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"]