update PATH + improvements

This commit is contained in:
Kishan Takoordyal 2021-02-12 09:26:39 +04:00
parent fc180aefcf
commit 16f91dc886
No known key found for this signature in database
GPG Key ID: 304DF64F0804D6A1

View File

@ -7,7 +7,7 @@ RUN apt update && \
apt upgrade -y apt upgrade -y
# Install some dependencies # Install some dependencies
RUN apt install -y iputils nano gcc glibc unzip build-essential curl RUN apt install -y nano gcc lsof unzip build-essential curl
# Install NodeJS & npm # Install NodeJS & npm
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash && \ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash && \
@ -17,8 +17,13 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash && \
npm -v npm -v
# Install Rust compilers + cargo # Install Rust compilers + cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && \ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y && \
rustc --version && \ echo 'source $HOME/.cargo/env' >> $HOME/.bashrc && \
export PATH='$PATH:$HOME/.cargo/bin'
# Fetch versions of rustc and cargo
ENV PATH="/root/.cargo/bin:${PATH}"
RUN rustc --version && \
cargo version cargo version
# Test if Cargo works properly by running a hello world program # Test if Cargo works properly by running a hello world program
@ -28,8 +33,15 @@ RUN cargo new hello_world && \
# Install latest version of Deno # Install latest version of Deno
RUN curl -fsSL https://deno.land/x/install/install.sh | sh && \ RUN curl -fsSL https://deno.land/x/install/install.sh | sh && \
deno upgrade && \ echo 'export DENO_INSTALL="/root/.deno"' >> $HOME/.bashrc && \
deno --version export DENO_INSTALL="/root/.deno" && \
export PATH='$PATH:$DENO_INSTALL/bin'
# Check deno version and upgrade to latest
ENV PATH="/root/.deno/bin:${PATH}"
RUN deno upgrade && \
deno --version && \
deno run https://deno.land/std/examples/welcome.ts
EXPOSE 80/tcp EXPOSE 80/tcp
EXPOSE 443/tcp EXPOSE 443/tcp