Skip to content

Commit

Permalink
removed unnecessary step in dockerimage
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed May 23, 2024
1 parent 789a6d5 commit d9d0b90
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ FROM rust:latest
WORKDIR /usr/src/action

COPY Cargo.toml .
RUN mkdir src && echo "fn main() {}" > src/main.rs
RUN cargo build --release

COPY src src
RUN touch src/main.rs

CMD ["cargo", "run", "--release"]
RUN cargo build --release

CMD ["/usr/src/action/target/release/list-team-members"]

0 comments on commit d9d0b90

Please sign in to comment.