diff --git a/Dockerfile b/Dockerfile index d31c110..9bd2195 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ COPY . . COPY --from=js /usr/src/app ./npm/app # Fetch dependencies. RUN go get -d -v ./... && go get github.com/go-bindata/go-bindata/go-bindata +RUN BUILD_DIR=$(pwd); GOZSTD_VER=$(cat go.mod | fgrep github.com/valyala/gozstd | awk '{print $2}'); go get -d github.com/valyala/gozstd@${GOZSTD_VER}; cd ${GOPATH}/pkg/mod/github.com/valyala/gozstd@${GOZSTD_VER}; if [[ ! -f _rebuilt ]]; then chmod -R +w .; make -j8 clean; make -j8 libzstd.a; touch _rebuilt; fi; cd ${BUILD_DIR} RUN go generate ./... RUN go build -o stateexplorer ./cmd/stateexplorer diff --git a/go.mod b/go.mod index 1f063d4..2aca214 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/evanw/esbuild v0.8.54 github.com/filecoin-project/go-address v0.0.5 github.com/filecoin-project/go-bitfield v0.2.4 - github.com/filecoin-project/go-bs-postgres-chainnotated v0.0.0-20210303122434-164e32c1604d // indirect + github.com/filecoin-project/go-bs-postgres-chainnotated v0.0.0-20210303122434-164e32c1604d github.com/filecoin-project/go-fil-markets v1.1.9 github.com/filecoin-project/go-hamt-ipld/v2 v2.0.0 github.com/filecoin-project/go-hamt-ipld/v3 v3.0.1