## - INIT -- ##
# Prereqs
FROM rust

# Setting up the directories
WORKDIR /src
RUN mkdir /build

# Copying the project into it
COPY src/ ./src
COPY Cargo.toml .

## - RUNTIME - ##

# Building the app
CMD ["/bin/bash", "-c", "cargo build && cp ./target/debug/RustyPass /build/RustyPass"]