From a71bee6faa9539ae504a4aa1726f40dcbb5f78c6 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Thu, 19 Sep 2024 15:28:13 -0400 Subject: [PATCH] match FROM casing for AS in risc dockerfile https://github.com/Chia-Network/build-images/actions/runs/10946439832/job/30392953775?pr=81#step:11:32815 ``` 4 warnings found (use docker --debug to expand): - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 7) - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 18) - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 29) - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) ``` --- ubuntu-22.04-risc/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ubuntu-22.04-risc/Dockerfile b/ubuntu-22.04-risc/Dockerfile index 2ab3f4d..6343916 100644 --- a/ubuntu-22.04-risc/Dockerfile +++ b/ubuntu-22.04-risc/Dockerfile @@ -1,10 +1,10 @@ -FROM riscv64/ubuntu:focal as base +FROM riscv64/ubuntu:focal AS base RUN apt-get update && \ DEBIAN_FRONTEND="noninteractive" apt-get install -y tree build-essential cmake curl wget git make pkg-config libgmp-dev libboost-dev libssl-dev zlib1g zlib1g-dev libreadline-dev libffi-dev && \ rm -rf /var/lib/apt/lists/* -FROM base as ld +FROM base AS ld RUN curl -L -O https://ftpmirror.gnu.org/gnu/binutils/binutils-2.38.tar.gz && \ tar -xvzf binutils-2.38.tar.gz && \ @@ -15,7 +15,7 @@ RUN curl -L -O https://ftpmirror.gnu.org/gnu/binutils/binutils-2.38.tar.gz && \ tree /opt && \ /opt/ld/bin/ld --version -FROM base as sqlite +FROM base AS sqlite RUN curl -L -O https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ tar -xvzf sqlite-autoconf-3400100.tar.gz && \ @@ -26,7 +26,7 @@ RUN curl -L -O https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ tree /opt && \ /opt/sqlite3/bin/sqlite3 -version -FROM base as final +FROM base AS final COPY --from=ld /opt/ld /usr