7 lines
155 B
Docker
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"]
|