From dddc994388aabc9cf17127dc0ab0dffe58b25f22 Mon Sep 17 00:00:00 2001 From: OBJNULL Date: Wed, 19 Jun 2024 16:02:12 -0400 Subject: [PATCH] Dockerfile cleanup --- Dockerfile | 18 ++++++++---------- src/cli.rs | 7 +++++++ 2 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 src/cli.rs diff --git a/Dockerfile b/Dockerfile index fb438da..0a84349 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,14 @@ -## - INIT -- ## -# Prereqs +## Setup +# Use the Rust container as a base FROM rust -# Setting up the directories +# Setup directories +RUN mkdir /src /build WORKDIR /src -RUN mkdir /build -# Copying the project into it -COPY src/ ./src +# Copy project into Docker image COPY Cargo.toml . +COPY src/ ./src -## - RUNTIME - ## - -# Building the app -CMD ["/bin/bash", "-c", "cargo build && cp ./target/debug/RustyPass /build/RustyPass"] \ No newline at end of file +## Run +CMD cargo build && cp ./target/debug/RustyPass /build/ \ No newline at end of file diff --git a/src/cli.rs b/src/cli.rs new file mode 100644 index 0000000..17cc120 --- /dev/null +++ b/src/cli.rs @@ -0,0 +1,7 @@ +// Libraries + +// Structs +pub struct UI{ + +} +