Skip to content

Commit

Permalink
ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 4, 2024
1 parent e355151 commit fd0afd9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64,arm

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Install latest rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: sahara101
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@v5

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.arm
Expand Down
14 changes: 7 additions & 7 deletions Dockerfile.arm
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ FROM python:3.9-slim-bullseye AS builder
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential python3-dev gcc libffi-dev \
curl libssl-dev rustc cargo pkg-config \
curl libssl-dev pkg-config \
portaudio19-dev libasound2-dev cmake

# Install Rust
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y

WORKDIR /build
COPY requirements.txt .

# Build with specific versions and dependencies
RUN pip install --upgrade pip setuptools wheel && \
pip wheel --no-deps --no-cache-dir --wheel-dir /wheels \
cffi pycparser && \
pip wheel --no-deps --no-cache-dir --wheel-dir /wheels \
"cryptography==43.0.0" && \
pip wheel --no-deps --no-cache-dir --wheel-dir /wheels -r requirements.txt && \
pip wheel --no-deps --no-cache-dir --wheel-dir /wheels \
aiohttp aiohappyeyeballs aiosignal annotated-types async-timeout attrs \
Expand Down

0 comments on commit fd0afd9

Please sign in to comment.