From 3a69d0418f22e5cf7264785285125ffcaa7ae51d Mon Sep 17 00:00:00 2001 From: Gerald Wu Date: Thu, 21 Nov 2024 01:31:34 +0000 Subject: [PATCH] Update Dockerfile Co-authored-by: JP Hastings-Edrei --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 033c00f..b2a41b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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