From c3ac9dffba441e10c884cf96db808efd78c3d227 Mon Sep 17 00:00:00 2001 From: Colby Thomas Date: Mon, 25 Apr 2022 03:05:59 -0600 Subject: [PATCH] ci: dockerfile caching --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 674495a..702e3de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,13 +4,14 @@ RUN USER=root RUN mkdir thokr WORKDIR /thokr -COPY . ./ RUN rustup target add x86_64-unknown-linux-musl RUN apt update RUN apt -y install musl-tools musl-dev build-essential gcc-x86-64-linux-gnu +COPY . ./ + ENV RUSTFLAGS='-C linker=x86_64-linux-gnu-gcc' RUN cargo build --target x86_64-unknown-linux-musl --release