sco/Dockerfile

12 lines
224 B
Docker

FROM golang:1.15 as builder
RUN mkdir /build
ADD . /build/
WORKDIR /build
RUN make build && find .
FROM scratch
COPY --from=builder /build/sco /app/main
COPY --from=builder /build /archive/build
WORKDIR /app
CMD ["./main"]