sco/Dockerfile

24 lines
281 B
Docker
Raw Normal View History

2020-09-08 22:28:23 +00:00
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
2020-09-08 22:58:55 +00:00
RUN make build
2020-09-08 22:28:23 +00:00
FROM scratch
COPY --from=builder /build/main /app/
WORKDIR /app
CMD ["./main"]