Split Debian control files by architecture
This commit is contained in:
parent
5f5785c57f
commit
520acf9383
13 changed files with 111 additions and 26 deletions
|
|
@ -30,11 +30,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-build,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-pip python3-venv
|
||||
mkdir -p /var/cache/apt/${TARGETARCH}${TARGETVARIANT}/archives/partial && \
|
||||
apt-get update && \
|
||||
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-pip python3-venv
|
||||
|
||||
WORKDIR /home/mimic3/app
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue