Move copy to the end for parallel image building

This commit is contained in:
Mikhail f. Shiryaev 2023-02-12 14:55:16 +01:00
parent d0f5b6efb5
commit ebb41504c0
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -42,7 +42,6 @@ RUN git clone --depth 1 https://github.com/tpoechtrager/cctools-port.git \
FROM clickhouse/test-util:$FROM_TAG
ENV CC=clang-${LLVM_VERSION}
ENV CXX=clang++-${LLVM_VERSION}
COPY --from=cctools /cctools /cctools
# Rust toolchain and libraries
ENV RUSTUP_HOME=/rust/rustup
@ -103,6 +102,8 @@ RUN curl -Lo /usr/bin/clang-tidy-cache \
"https://raw.githubusercontent.com/matus-chochlik/ctcache/$CLANG_TIDY_SHA1/clang-tidy-cache" \
&& chmod +x /usr/bin/clang-tidy-cache
COPY --from=cctools /cctools /cctools
RUN mkdir /workdir && chmod 777 /workdir
WORKDIR /workdir