Skip to content

Commit

Permalink
fix: correct Dockerfile
Browse files Browse the repository at this point in the history
[no ci]
  • Loading branch information
MrExplode committed Oct 22, 2023
1 parent b8062c6 commit 4347dbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ serde = { version = "1.0.189", features = ["derive"] }
serde_json = "1.0"
serde_qs = "0.12.0"
env_logger = "0.10.0"

[[bin]]
name = "hooks"
test = false
bench = false
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM rust:1.73-alpine as builder
FROM clux/muslrust:stable as builder

WORKDIR /app
COPY . .

RUN cargo install --path .
RUN cargo install --path . --root . --no-track

FROM alpine:latest as runner

WORKDIR /app
COPY --from=builder /hooks .
COPY --from=builder /app/bin/hooks .

CMD [ "/app/hooks" ]

0 comments on commit 4347dbd

Please sign in to comment.