Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
NanuIjaz authored Sep 9, 2023
1 parent 9da1aca commit fbffc9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbffc9c

Please sign in to comment.