Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
NanuIjaz authored Aug 27, 2024
1 parent 0648a65 commit e3cfea8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ RUN touch /etc/nix/nix.conf
RUN echo "donotUnpack = true" > /etc/nix/nix.conf && echo "experimental-features = nix-command flakes" > /etc/nix/nix.conf && echo "allow-import-from-derivation = true" >> /etc/nix/nix.conf && echo "extra-experimental-features = fetch-closure" >> /etc/nix/nix.conf
RUN mkdir /root/test-node
RUN mkdir /root/ipc
RUN export TMPDIR="/tmp"
WORKDIR /root/test-node
RUN cat /etc/nix/nix.conf
COPY . .
RUN nix build .#cardano-cli-ng -o cardano-cli-ng-build
RUN nix build .#cardano-node-ng -o cardano-node-ng-build
RUN nix build .#cardano-cli -o cardano-cli-build
ENV PATH="/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/root/test-node/cardano-cli-ng-build/bin:/root/test-node/cardano-node-ng-build/bin:/root/test-node/cardano-cli-build/bin:$PATH"
RUN direnv allow
CMD nix build .#cardano-cli-ng -o cardano-cli-ng-build && nix build .#cardano-cli -o cardano-cli-build && nix develop .# --command just run-demo && nix run .#run-cardano-node
CMD nix develop .# --command just run-demo

0 comments on commit e3cfea8

Please sign in to comment.