27 lines
No EOL
642 B
Docker
27 lines
No EOL
642 B
Docker
## BACKEND ##
|
|
# Parent Image
|
|
FROM debian
|
|
|
|
# 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
|
|
|
|
## RUNTIME ##
|
|
ENTRYPOINT ["/bin/rust-analyzer"] |