Merge pull request #3934 from mempool/junderw/fix-armv7-docker

Fix backend docker build for armv7
This commit is contained in:
softsimon 2023-07-21 10:19:20 +09:00 committed by GitHub
commit 135adfecbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

1
backend/.dockerignore Normal file
View file

@ -0,0 +1 @@
Dockerfile

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"