Dockerized-Rust/docker/build/Dockerfile

28 lines
No EOL
550 B
Docker

## BACKEND ##
# Parent image
FROM debian
# Creating directories
RUN mkdir /work /src /app
WORKDIR /work
# 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 /tmp/rust.sh
RUN chmod +x /tmp/rust.sh
# Installing Rust Toolchain
RUN /tmp/rust.sh -y
# Getting Environment Variable
ENV PROJ_NAME=example
# Copying Build Script
COPY docker/build/build.sh /bin/build.sh
RUN chmod +x /bin/build.sh
## RUNTILE ##
CMD ["bash", "/bin/build.sh"]