sco/Dockerfile

16 lines
211 B
Docker
Raw Normal View History

2020-09-08 22:28:23 +00:00
FROM golang:1.15 as builder
2020-09-09 02:46:53 +00:00
2020-09-08 22:28:23 +00:00
RUN mkdir /build
ADD . /build/
WORKDIR /build
RUN make build
2020-09-08 22:28:23 +00:00
2020-09-09 02:46:53 +00:00
2020-09-08 22:28:23 +00:00
FROM scratch
2020-09-09 02:46:53 +00:00
2020-09-09 01:19:03 +00:00
COPY --from=builder /build/sco /app/main
2020-09-09 02:57:28 +00:00
COPY --from=builder /go /goarchive
2020-09-08 22:28:23 +00:00
WORKDIR /app
CMD ["./main"]