Dockerfile cleanup
This commit is contained in:
parent
4932bb57ad
commit
dddc994388
2 changed files with 15 additions and 10 deletions
18
Dockerfile
18
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"]
|
||||
## Run
|
||||
CMD cargo build && cp ./target/debug/RustyPass /build/
|
7
src/cli.rs
Normal file
7
src/cli.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Libraries
|
||||
|
||||
// Structs
|
||||
pub struct UI{
|
||||
|
||||
}
|
||||
|
Loading…
Reference in a new issue