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 91a220b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
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

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

0 comments on commit 91a220b

Please sign in to comment.