Split Debian control files by architecture
This commit is contained in:
parent
5f5785c57f
commit
520acf9383
13 changed files with 111 additions and 26 deletions
|
|
@ -58,12 +58,15 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||
|
||||
RUN echo "Dir::Cache var/cache/apt/${TARGETARCH}${TARGETVARIANT};" > /etc/apt/apt.conf.d/01cache
|
||||
|
||||
COPY debian/control.in.* ./debian/
|
||||
|
||||
# Use dependencies from Debian package control file
|
||||
RUN --mount=type=cache,id=apt-run,target=/var/cache/apt \
|
||||
mkdir -p /var/cache/apt/${TARGETARCH}${TARGETVARIANT}/archives/partial && \
|
||||
apt-get update && \
|
||||
apt-get install --yes --no-install-recommends \
|
||||
python3 python3-venv python3-pip \
|
||||
libespeak-ng1 libatomic1 libgomp1
|
||||
grep 'Depends:' "debian/control.in.${TARGETARCH}${TARGETVARIANT}" | cut -d' ' -f2- | sed -e 's/,/\n/g' | \
|
||||
xargs apt-get install --yes --no-install-recommends \
|
||||
python3 python3-venv python3-pip
|
||||
|
||||
WORKDIR /test
|
||||
|
||||
|
|
@ -75,8 +78,8 @@ COPY --from=build /build/mimic3/dist/*.tar.gz ./dist/
|
|||
RUN --mount=type=cache,id=pip-requirements,target=/root/.cache/pip \
|
||||
python3 -m venv .venv && \
|
||||
.venv/bin/pip3 install \
|
||||
-f wheels/ \
|
||||
-f https://synesthesiam.github.io/prebuilt-apps/ \
|
||||
-f https://www.piwheels.hostedpi.com/simple/numpy/ \
|
||||
-f dist/ \
|
||||
mimic3-tts
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue