Dockerfile cleanup

This commit is contained in:
Maddox Werts 2024-06-19 16:02:12 -04:00
parent 4932bb57ad
commit dddc994388
2 changed files with 15 additions and 10 deletions

View file

@ -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"]
## Run
CMD cargo build && cp ./target/debug/RustyPass /build/

7
src/cli.rs Normal file
View file

@ -0,0 +1,7 @@
// Libraries
// Structs
pub struct UI{
}