Update the Dockerfile with latest requirements

This commit is contained in:
Aidan Hobson Sayers 2021-03-22 00:22:51 +00:00 committed by Fabian
parent 447897d91c
commit 34339fe8d8

View file

@ -1,12 +1,19 @@
FROM ubuntu:latest
FROM ubuntu:20.04
RUN \
export DEBIAN_FRONTEND=noninteractive && \
dpkg --add-architecture i386 && \
apt-get update -qq && \
apt-get install -y nasm gdb unzip p7zip-full openjdk-8-jre wget python python3 qemu-system-x86 git-core build-essential libc6-dev-i386-cross libc6-dev-i386 && \
wget https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-x64.tar.xz && \
tar xfv node-v8.9.4-linux-x64.tar.xz && \
rm node-v8.9.4-linux-x64.tar.xz && \
apt-get dist-upgrade -y
RUN \
export DEBIAN_FRONTEND=noninteractive && \
apt-get install -y nasm gdb unzip p7zip-full openjdk-8-jre wget python python3 qemu-system-x86 git-core build-essential libc6-dev-i386-cross libc6-dev-i386 clang curl
RUN \
NODEVSN=v14.16.0 && \
wget https://nodejs.org/dist/$NODEVSN/node-$NODEVSN-linux-x64.tar.xz && \
tar xfv node-$NODEVSN-linux-x64.tar.xz && \
rm node-$NODEVSN-linux-x64.tar.xz && \
echo 'export PATH="$PATH:/node-$NODEVSN-linux-x64/bin"' >> ~/.bashrc && \
wget https://sh.rustup.rs -O rustup.sh && \
sh ./rustup.sh -y && \
rm ./rustup.sh && \
@ -14,8 +21,4 @@ RUN \
rustup toolchain install nightly && \
rustup default nightly && \
rustup target add wasm32-unknown-unknown --toolchain nightly && \
rustup component add rustfmt-preview --toolchain nightly && \
apt-get clean && \
apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
rustup component add rustfmt-preview --toolchain nightly