diff --git a/.dockerignore b/.dockerignore index f8d44c80..8620b636 100644 --- a/.dockerignore +++ b/.dockerignore @@ -11,5 +11,4 @@ README.md # Cargo files **/*.rs.bk -/target/ -Cargo.lock \ No newline at end of file +/target/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index aab5e695..56b75290 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,11 @@ WORKDIR "/parrot" RUN mkdir src RUN echo "fn main() {}" > src/main.rs COPY Cargo.toml ./ -RUN cargo build --release +COPY Cargo.lock ./ +RUN cargo build --release --locked COPY . . -RUN cargo build --release +RUN cargo build --release --locked # Release image # Necessary dependencies to run Parrot