Skip to content

Commit

Permalink
try to fix armv6
Browse files Browse the repository at this point in the history
  • Loading branch information
FloSch62 committed Jan 12, 2025
1 parent 4bc0d0a commit 15175e0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# Use an official Python runtime as a parent image
FROM --platform=$TARGETPLATFORM python:3.11-slim
FROM python:3.11-slim

# Install build tools and required libraries
RUN apt-get update && apt-get install -y \
build-essential \
python3-dev \
curl \
libc6-armhf-cross \
libc6-dev-armhf-cross
libc6-dev-armhf-cross \
libgcc-s1 \
gcc-arm-linux-gnueabihf

# Create necessary symlink for ARM builds
# Create necessary symlinks
RUN mkdir -p /lib && \
ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux-armhf.so.3 || true
ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux-armhf.so.3 || true && \
ln -s /usr/lib/gcc-cross/arm-linux-gnueabihf/*/libgcc_s.so.1 /lib/libgcc_s.so.1 || true

# Install uv
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
Expand Down

0 comments on commit 15175e0

Please sign in to comment.