Skip to content

Commit

Permalink
ci: keep Cargo.lock (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldamasceno authored Dec 28, 2022
1 parent 9d1946e commit c00aa9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ README.md

# Cargo files
**/*.rs.bk
/target/
Cargo.lock
/target/
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c00aa9d

Please sign in to comment.