Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Co-authored-by: JP Hastings-Edrei <[email protected]>
  • Loading branch information
2 people authored and mbrubeck committed Nov 28, 2024
1 parent 2f01322 commit 3a69d04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM docker.io/library/rust:alpine AS builder

WORKDIR /agate
RUN apk --no-cache add libc-dev

COPY src src
COPY Cargo.toml .
COPY Cargo.lock .
COPY Cross.toml .
RUN apk --no-cache add libc-dev && \
cargo install --target x86_64-unknown-linux-musl --path .
RUN cargo install --target x86_64-unknown-linux-musl --path .

FROM docker.io/library/alpine:latest
COPY --from=builder /usr/local/cargo/bin/agate /usr/bin/agate
Expand Down

0 comments on commit 3a69d04

Please sign in to comment.