Skip to content

Commit

Permalink
speed up build for arm32
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Oct 4, 2024
1 parent 54fcf00 commit a67a8fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
3 changes: 1 addition & 2 deletions app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ pydantic==2.9.*
python-dotenv==1.0.*
requests==2.32.*
PyYAML==6.0.*
xxtea==3.3.*
lxml==5.3.*
xxtea==3.3.*
5 changes: 1 addition & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ FROM python:3.12-slim-bookworm AS base
FROM base AS builder
ARG BUILD_DATE
RUN apt-get update \
&& apt-get install -y curl tar gcc \
&& if [ "$(uname -m)" = "armv7l" ]; then \
apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev libffi-dev; \
fi \
&& apt-get install -y curl tar gcc python3-lxml \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY ../app/ /build/app/
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.hwaccel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG QSV
ARG BUILD_DATE
RUN if [ -n "$QSV" ]; then echo 'deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware' >/etc/apt/sources.list.d/debian-testing.list; fi \
&& apt-get update \
&& apt-get install -y curl tar xz-utils \
&& apt-get install -y curl tar xz-utils python3-lxml \
${QSV:+i965-va-driver intel-media-va-driver-non-free libmfx1 libva-drm2 libx11-6 && apt-get install i965-va-driver-shaders} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand Down
5 changes: 1 addition & 4 deletions docker/Dockerfile.multiarch
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ FROM base_$TARGETARCH AS builder
ARG TARGETARCH
ARG BUILD_DATE
RUN apt-get update \
&& apt-get install -y curl tar gcc \
&& if [ "${TARGETARCH}" = "arm" ]; then \
apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev libffi-dev; \
fi \
&& apt-get install -y curl tar gcc python3-lxml \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY /app/ /build/app/
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.qsv
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG QSV
ARG BUILD_DATE
RUN if [ -n "$QSV" ]; then echo 'deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware' >/etc/apt/sources.list.d/debian-testing.list; fi \
&& apt-get update \
&& apt-get install -y curl tar xz-utils \
&& apt-get install -y curl tar xz-utils python3-lxml \
${QSV:+i965-va-driver intel-gpu-tools intel-media-va-driver-non-free intel-opencl-icd libmfx1 libva-drm2 libx11-6 vainfo} \
&& if [ -n "$QSV" ]; then apt-get install -y i965-va-driver-shaders; fi \
&& apt-get clean \
Expand Down

0 comments on commit a67a8fa

Please sign in to comment.