Skip to content

Commit

Permalink
fix: improve ARM64 support in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
5u6r054 committed Jan 31, 2025
1 parent 437f0a6 commit ce6b288
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Build stage for Rust components
FROM rust:1.74-slim-bullseye as builder
FROM --platform=$TARGETPLATFORM rust:1.74-bullseye as builder

# Install build dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3-dev \
python3 \
python3-pip \
python3-dev \
pkg-config \
libssl-dev \
libffi-dev \
Expand All @@ -27,7 +28,7 @@ RUN pip3 install maturin==1.4.0
RUN pip3 install "bittensor-wallet==2.1.3" --target /wheels

# Final stage
FROM python:3.12-slim-bullseye
FROM --platform=$TARGETPLATFORM python:3.12-bullseye

# Install system dependencies
RUN apt-get update && \
Expand Down

0 comments on commit ce6b288

Please sign in to comment.