diff --git a/Dockerfile b/Dockerfile index fb06ca3e3..f10e49842 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,13 +53,15 @@ ENV LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" \ PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" ARG VERSION RUN echo "Building tags/$VERSION..." -RUN mkdir /cardano-db-sync -RUN cd /cardano-db-sync \ - && touch cabal.project.local \ - && echo "with-compiler: ghc-8.10.7" >> cabal.project.local \ - && cabal update -RUN cd /cardano-db-sync \ - && cabal build all \ +RUN touch cabal.project.local +COPY . . +RUN ls -a *cabal* +RUN cabal update \ + && cabal configure --with-compiler=ghc-8.10.7 \ + && ls -ltra \ + && echo "package cardano-crypto-praos" >> cabal.project.local \ + && echo "flags: -external-libsodium-vrf" >> cabal.project.local +RUN cabal build all \ && cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-db-sync-*/build/cardano-db-sync/cardano-db-sync /root/.local/bin/ FROM debian:stable-slim ENV LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"