2021-11-15 11:02:31 -08:00
|
|
|
FROM golang:1.17-alpine AS build
|
|
|
|
RUN apk add build-base git linux-headers
|
|
|
|
WORKDIR /work
|
|
|
|
COPY go.mod go.sum /work/
|
|
|
|
COPY db/go.mod db/go.sum /work/db/
|
2021-12-20 01:23:41 -08:00
|
|
|
COPY errors/go.mod errors/go.sum /work/errors/
|
2021-12-14 01:26:09 -08:00
|
|
|
|
2021-11-15 11:02:31 -08:00
|
|
|
RUN go mod download
|
|
|
|
COPY ./ /work
|
|
|
|
RUN LEDGER_ENABLED=false make clean build
|
2020-08-31 06:39:05 -07:00
|
|
|
|
2021-11-15 11:02:31 -08:00
|
|
|
FROM alpine:3.14 AS run
|
|
|
|
RUN apk add bash curl jq
|
|
|
|
COPY contrib/images/simd-env/wrapper.sh /usr/bin/wrapper.sh
|
2020-08-31 06:39:05 -07:00
|
|
|
|
2021-11-15 11:02:31 -08:00
|
|
|
VOLUME /simd
|
|
|
|
COPY --from=build /work/build/simd /simd/
|
2020-08-31 06:39:05 -07:00
|
|
|
WORKDIR /simd
|
2021-11-15 11:02:31 -08:00
|
|
|
|
2020-08-31 06:39:05 -07:00
|
|
|
EXPOSE 26656 26657
|
|
|
|
ENTRYPOINT ["/usr/bin/wrapper.sh"]
|
2020-12-03 15:17:21 -08:00
|
|
|
CMD ["start", "--log_format", "plain"]
|
2020-08-31 06:39:05 -07:00
|
|
|
STOPSIGNAL SIGTERM
|