install packages in docker file directly, modify PATH variable
Some checks failed
Continuous Releases / build (push) Failing after 13s
Some checks failed
Continuous Releases / build (push) Failing after 13s
This commit is contained in:
@@ -2,6 +2,7 @@ ARG UBUNTU_VERSION=latest
|
|||||||
FROM ubuntu:${UBUNTU_VERSION}
|
FROM ubuntu:${UBUNTU_VERSION}
|
||||||
LABEL AUTHOR=Lauren
|
LABEL AUTHOR=Lauren
|
||||||
WORKDIR /opt/setup
|
WORKDIR /opt/setup
|
||||||
RUN apt update
|
RUN apt update && apt install nodejs curl mingw-w64
|
||||||
COPY setup.sh /opt/setup/setup.sh
|
COPY setup.sh /opt/setup/setup.sh
|
||||||
RUN bash /opt/setup/setup.sh
|
RUN bash /opt/setup/setup.sh
|
||||||
|
ENV PATH=$PATH:$HOME/.cargo/bin
|
||||||
1
setup.sh
1
setup.sh
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
apt install -y mingw-w64 curl nodejs
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
export PATH=$PATH:/root/.cargo/bin
|
export PATH=$PATH:/root/.cargo/bin
|
||||||
rustup toolchain install stable
|
rustup toolchain install stable
|
||||||
|
|||||||
Reference in New Issue
Block a user