Skip to content

Commit

Permalink
dev: build sol in docker image (#1255)
Browse files Browse the repository at this point in the history
<!--- Please provide a general summary of your changes in the title
above -->

<!-- Give an estimate of the time you spent on this PR in terms of work
days.
Did you spend 0.5 days on this PR or rather 2 days?  -->

Time spent on this PR:

## Pull request type

<!-- Please try to limit your pull request to one type,
submit multiple pull requests if needed. -->

Please check the type of change your PR introduces:

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):

## What is the current behavior?

<!-- Please describe the current behavior that you are modifying,
or link to a relevant issue. -->

Resolves #<Issue number>

## What is the new behavior?

<!-- Please describe the behavior or changes that are being added by
this PR. -->

-
-
-

<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/kkrt-labs/kakarot/1255)
<!-- Reviewable:end -->
  • Loading branch information
enitrat authored Jul 5, 2024
1 parent de5b7d8 commit 5587a08
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/deployer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ WORKDIR /app/kakarot
############################################
FROM base as builder

ENV PATH="$PATH:/root/.local/bin:/root/.foundry/bin"
RUN curl -L https://foundry.paradigm.xyz -o foundry.sh \
&& chmod +x foundry.sh \
&& ./foundry.sh \
&& foundryup

RUN apt-get update && apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
Expand Down Expand Up @@ -60,7 +66,8 @@ RUN --mount=type=cache,target=/root/.cache \
COPY . .
RUN curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v 0.7.0
RUN --mount=type=cache,target=/root/.cache \
make fetch-ssj-artifacts && make build && make build-cairo1
make fetch-ssj-artifacts && make build && make build-cairo1 && make build-sol


############################################
# Kakarot deployer
Expand Down

0 comments on commit 5587a08

Please sign in to comment.