-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unify 4 dockerfiles into a single Dockerfile
- Loading branch information
Showing
5 changed files
with
44 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
### image to contribute, verify, finish ceremonies | ||
FROM node AS zk-voceremony | ||
|
||
WORKDIR /app | ||
|
||
RUN npm config set update-notifier false && \ | ||
npm install -g snarkjs | ||
|
||
RUN apt update \ | ||
&& apt install --no-install-recommends -y curl \ | ||
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \ | ||
&& apt install --no-install-recommends -y git-lfs \ | ||
&& git lfs install \ | ||
&& curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | ||
&& apt update \ | ||
&& apt install --no-install-recommends -y gh \ | ||
&& apt autoremove -y \ | ||
&& apt clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENTRYPOINT [ "bash" ] | ||
|
||
### image to create ceremonies | ||
FROM node AS zk-voceremony-creator | ||
|
||
WORKDIR /app | ||
|
||
RUN apt update && apt install --no-install-recommends -y -q build-essential curl | ||
|
||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
|
||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
RUN mkdir -p /temp && cd /temp && \ | ||
git clone https://github.com/iden3/circom.git && \ | ||
cd circom && \ | ||
cargo build --release && \ | ||
cargo install --path circom && \ | ||
npm config set update-notifier false && \ | ||
npm install -g snarkjs circomlib | ||
|
||
ENTRYPOINT [ "bash", "./scripts/create-ceremony.sh" ] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.