Skip to content

Commit

Permalink
match FROM casing for AS in risc dockerfile
Browse files Browse the repository at this point in the history
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)
```
  • Loading branch information
altendky authored Sep 19, 2024
1 parent 3dd40a2 commit a71bee6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ubuntu-22.04-risc/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand All @@ -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 && \
Expand All @@ -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

Expand Down

0 comments on commit a71bee6

Please sign in to comment.