-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
32 lines (27 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM registry.hub.docker.com/library/rust:1.69-slim@sha256:2522978d04d670d70389ee2d91ae7d266f622eb619560f6a242ee4c5544a39c5
# Install Rust
RUN rustup default 1.69 && \
rustup target add wasm32-unknown-unknown && \
rustup toolchain list && \
rustup target list
#RUN rustup toolchain install nightly && \
#rustup target add --toolchain nightly wasm32-unknown-unknown && \
#rustup toolchain list && \
#rustup target list
#RUN rustup component add llvm-tools-preview && cargo install grcov
# Install Node and PNPM
RUN apt update && \
apt install -y nodejs npm binaryen git curl wget clang cmake wabt jq tree && \
ls -al /var/cache/apt/archives && \
apt-get clean
RUN npm i -g n && n i 20 && npm i -g pnpm
# Install Docker CLI
ENV DOCKERVERSION=20.10.23
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 \
-C /usr/local/bin docker/docker \
&& rm docker-${DOCKERVERSION}.tgz
ENV LLVM_PROFILE_FILE="%p-%m.profraw"
RUN git config --global --add safe.directory "*"
RUN git config --global http.postBuffer 524288000
RUN git config --global http.lowSpeedTime 600