From fbffc9c7b7bcee8f8cd5642bd05f7d0bba19d654 Mon Sep 17 00:00:00 2001 From: NanuIjaz <122975171+NanuIjaz@users.noreply.github.com> Date: Sat, 9 Sep 2023 09:54:31 +0530 Subject: [PATCH] Update Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 62346bbd5..fb06ca3e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,11 +53,12 @@ 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 cd /home/cardano/cardano-db-sync \ +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 /home/cardano/cardano-db-sync \ +RUN cd /cardano-db-sync \ && 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