Fix backend docker build for armv7

This commit is contained in:
junderw committed 2023-07-08 23:03:03 -07:00
1 parent fd8d9edf6c
commit 6d6266c28a
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -7,9 +7,10 @@ WORKDIR /build
COPY . .
RUN apt-get update
RUN apt-get install -y build-essential python3 pkg-config curl
RUN apt-get install -y build-essential python3 pkg-config curl ca-certificates
# Install Rust via rustup
RUN CPU_ARCH=$(uname -m); if [ "$CPU_ARCH" = "armv7l" ]; then c_rehash; fi
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
ENV PATH="/root/.cargo/bin:$PATH"