Update Dev Docker Image

Add `go mod tidy` to Dockerfile to install go dependencies before building executables
pull/3845/head
Matthew Woop 3 years ago committed by Leo Chen
parent 4f80315b83
commit 290b75f00d
  1. 2
      Dockerfile

@ -74,6 +74,8 @@ WORKDIR ${HMY_PATH}/harmony
RUN eval "$(~/bin/gimme ${GIMME_GO_VERSION})" ; scripts/install_build_tools.sh RUN eval "$(~/bin/gimme ${GIMME_GO_VERSION})" ; scripts/install_build_tools.sh
RUN go mod tidy
RUN eval "$(~/bin/gimme ${GIMME_GO_VERSION})" ; scripts/go_executable_build.sh -S RUN eval "$(~/bin/gimme ${GIMME_GO_VERSION})" ; scripts/go_executable_build.sh -S
RUN cd ${HMY_PATH}/go-sdk && make -j8 && cp hmy /root/bin RUN cd ${HMY_PATH}/go-sdk && make -j8 && cp hmy /root/bin

Loading…
Cancel
Save