forked from bitcoinjs/tiny-secp256k1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
2 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,36 @@ | ||
FROM debian:buster | ||
|
||
RUN apt update && \ | ||
# Install common dependencies | ||
apt install -y \ | ||
cmake \ | ||
curl \ | ||
g++ \ | ||
gcc \ | ||
git \ | ||
gnupg \ | ||
lsb-release \ | ||
make \ | ||
software-properties-common \ | ||
wget && \ | ||
# Install LLVM:12 | ||
curl -sSf https://apt.llvm.org/llvm.sh | bash -s -- 12 && \ | ||
# Install Node.js:14 | ||
curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \ | ||
apt install nodejs -y && \ | ||
# Install Rust nightly | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y \ | ||
--default-toolchain nightly \ | ||
--profile minimal \ | ||
--component clippy,rustfmt,rust-src \ | ||
--target wasm32-unknown-unknown && \ | ||
echo 'source $HOME/.cargo/env' >> $HOME/.bashrc && \ | ||
# Install wasm-opt from binaryen | ||
git clone --depth 1 --branch version_100 https://github.com/WebAssembly/binaryen.git /binaryen && \ | ||
cd /binaryen && \ | ||
cmake . && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
rm -rf /binaryen && \ | ||
# Remove apt files | ||
rm -rf /var/lib/{apt,dpkg,cache,log}/ |
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