Skip to content

Commit

Permalink
fixed docker image not compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed May 23, 2024
1 parent 70d0e16 commit d8f51f1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
FROM rust:1.78
FROM rust:latest

WORKDIR /usr/src/action
COPY . .

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

CMD ["action"]
COPY src src
RUN touch src/main.rs
RUN cargo build --release

CMD ["./target/release/list-team-members"]

0 comments on commit d8f51f1

Please sign in to comment.