24 lines
435 B
Text
24 lines
435 B
Text
|
|
## 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
|
||
|
|
|
||
|
|
# Switching to a User
|
||
|
|
RUN useradd -m rustacean
|
||
|
|
USER rustacean
|
||
|
|
|
||
|
|
# Installing Rust
|
||
|
|
RUN ./rust.sh -y
|
||
|
|
|
||
|
|
## RUNTIME ##
|
||
|
|
ENTRYPOINT ["/home/rustacean/.cargo/bin/cargo"]
|