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
|
2020-09-09 02:45:11 +00:00
|
|
|
RUN make build
|
2020-09-08 22:28:23 +00:00
|
|
|
|
2020-09-09 02:46:53 +00:00
|
|
|
# temp
|
|
|
|
RUN find /
|
|
|
|
|
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:43:37 +00:00
|
|
|
COPY --from=builder /build /archive/build
|
2020-09-08 22:28:23 +00:00
|
|
|
WORKDIR /app
|
|
|
|
CMD ["./main"]
|