Rust-LS/Dockerfile

27 lines
642 B
Text
Raw Normal View History

2025-01-19 08:27:47 -06:00
## BACKEND ##
# Parent Image
FROM debian
2024-06-20 12:03:55 -05:00
2025-01-19 08:27:47 -06:00
# Creating directories
WORKDIR /tmp
# Installing Deps
RUN apt update -y
RUN apt install -y wget build-essential libssl-dev pkg-config
# Downloading Rust Install Script
RUN wget https://sh.rustup.rs -O rust.sh
RUN chmod +x rust.sh
# Installing Rust
RUN ./rust.sh -y
# Downloading Rust-Analyzer
RUN wget https://github.com/rust-lang/rust-analyzer/releases/download/2025-01-13/rust-analyzer-x86_64-unknown-linux-gnu.gz -O rust-analyzer.gz
RUN gunzip -c rust-analyzer.gz > /bin/rust-analyzer
# Installing rust-analyzer
RUN chmod +x /bin/rust-analyzer
2024-06-20 12:03:55 -05:00
## RUNTIME ##
2025-01-19 08:27:47 -06:00
ENTRYPOINT ["/bin/rust-analyzer"]