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 fbffc9c commit 714ea2c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 714ea2c

Please sign in to comment.