46 lines
No EOL
1.3 KiB
Bash
46 lines
No EOL
1.3 KiB
Bash
FROM ubuntu:18.04
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
ARG RUST_TOOLCHAIN=nightly-2020-08-05
|
|
|
|
ENV RUSTUP_HOME=/usr/local/rustup \
|
|
CARGO_HOME=/usr/local/cargo \
|
|
PATH=/usr/local/cargo/bin:$PATH
|
|
|
|
# Install prerequisites
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
curl \
|
|
build-essential \
|
|
software-properties-common \
|
|
cmake \
|
|
gnupg \
|
|
libboost-dev \
|
|
libboost-program-options-dev \
|
|
libgmp3-dev \
|
|
libprocps-dev \
|
|
libssl-dev \
|
|
pkg-config \
|
|
clang-format \
|
|
python3 \
|
|
python-markdown \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN add-apt-repository ppa:jonathonf/firefox-esr; \
|
|
apt-get update; \
|
|
apt-get install -y firefox-esr
|
|
|
|
RUN curl -sL https://raw.githubusercontent.com/Sarcasm/run-clang-format/master/run-clang-format.py > /opt/run-clang-format.py \
|
|
&& ln -s /opt/run-clang-format.py /usr/bin
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain $RUST_TOOLCHAIN -y; \
|
|
rustup --version; \
|
|
cargo --version; \
|
|
rustc --version;
|
|
|
|
RUN cargo install --git https://github.com/rustwasm/wasm-pack; \
|
|
wasm-pack --version;
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -; \
|
|
apt-get install -y nodejs; echo nodejs $(node -v); \
|
|
npm i -g solc; |