Skip to content

Commit

Permalink
feat: add scrypto-dev-container target to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
azizi-a committed Nov 15, 2024
1 parent 423e26a commit e405928
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,16 @@ WORKDIR /app

RUN cargo install --path ./radix-clis

FROM base-image
FROM base-image as deterministic-builder
COPY --from=builder /app/target/release/scrypto /usr/local/bin/scrypto
RUN rustup target add wasm32-unknown-unknown
WORKDIR /src

ENTRYPOINT ["scrypto", "build", "--path", "/src"]

FROM base-image as dev-container
RUN apt install -y bash-completion powerline
RUN echo 'powerline-daemon -q; POWERLINE_BASH_CONTINUATION=1; POWERLINE_BASH_SELECT=1; . /usr/share/powerline/bindings/bash/powerline.sh; . /etc/bash_completion' >> ~/.bashrc
COPY --from=builder /app/target/release/scrypto /usr/local/bin/scrypto
COPY --from=builder /app/target/release/resim /usr/local/bin/resim
RUN rustup target add wasm32-unknown-unknown

0 comments on commit e405928

Please sign in to comment.