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 fd822fc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ 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

RUN ls /usr/src/action/target/release

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

0 comments on commit fd822fc

Please sign in to comment.