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 -- ##
|
## 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
7
src/cli.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
// Libraries
|
||||||
|
|
||||||
|
// Structs
|
||||||
|
pub struct UI{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue