sco/Dockerfile
sneak e13c6c6697
Some checks failed
continuous-integration/drone/push Build is failing
should build now
2020-09-08 18:19:03 -07:00

24 lines
284 B
Docker

FROM golang:1.15
WORKDIR /go/src/app
copy . .
RUN go get -d -v ./...
RUN go install -v ./...
CMD ["sco"]
FROM golang:1.15 as builder
RUN mkdir /build
ADD . /build/
WORKDIR /build
RUN make build
FROM scratch
COPY --from=builder /build/sco /app/main
WORKDIR /app
CMD ["./main"]