Skip to content

Commit cdb1588

Browse files
Migrated dev-tools container to debian-slim
1 parent d2c1378 commit cdb1588

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

dev-tools/Dockerfile

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
FROM ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
22

3-
RUN apk add libusb \
4-
ttf-dejavu \
5-
fontconfig \
6-
py3-qt5 \
7-
qemu-arm \
8-
tesseract-ocr \
9-
mesa-dri-gallium
10-
11-
ARG QEMU_BIN=qemu-arm
12-
13-
# -static version is not available in Alpine repositories
14-
RUN ln -s "$QEMU_BIN" $(dirname $(which "$QEMU_BIN"))/$QEMU_BIN-static
15-
16-
# Python packages building dependencies
17-
ARG PYTHON_BUILD_DEPS=libffi-dev,python3-dev,py3-virtualenv
18-
19-
# Install the building dependencies.
20-
RUN apk add $(echo -n "$PYTHON_BUILD_DEPS" | tr , ' ')
21-
22-
# Install packahes to allow Guideline Enforcer to run
23-
RUN apk add imagemagick grep
3+
RUN apt install -y --no-install-recommends \
4+
imagemagick \
5+
jq \
6+
libgl1 \
7+
libpython3-dev \
8+
python3-pyqt5 \
9+
python3-venv \
10+
qemu-user-static
11+
12+
RUN apt install -y --no-install-recommends \
13+
libxcb-icccm4 \
14+
libxcb-image0 \
15+
libxcb-keysyms1 \
16+
libxcb-render-util0 \
17+
libxcb-shape0 \
18+
libxcb-xinerama0 \
19+
libxcb-xkb1 \
20+
libxkbcommon-x11-0
2421

2522
# Install test tools (Ragger framework, Speculos emulator, Ledgerblue...)
26-
RUN pip3 install --no-cache-dir "ragger[tests,all_backends]==1.30.0" "speculos==0.18.0"
23+
RUN pip3 install --break-system-packages --no-cache-dir "speculos==0.18.0"
2724

2825
# Add the enforcer script
2926
ADD ./dev-tools/enforcer.sh /opt/enforcer.sh

0 commit comments

Comments
 (0)