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 -- ## ## Setup
# Prereqs # Use the Rust container as a base
FROM rust FROM rust
# Setting up the directories # Setup directories
RUN mkdir /src /build
WORKDIR /src WORKDIR /src
RUN mkdir /build
# Copying the project into it # Copy project into Docker image
COPY src/ ./src
COPY Cargo.toml . COPY Cargo.toml .
COPY src/ ./src
## - RUNTIME - ## ## Run
CMD cargo build && cp ./target/debug/RustyPass /build/
# Building the app
CMD ["/bin/bash", "-c", "cargo build && cp ./target/debug/RustyPass /build/RustyPass"]

7
src/cli.rs Normal file
View file

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