Skip to content

Commit 5fdcd6b

Browse files
Migrated dev-tools container to debian-slim
1 parent 1508fec commit 5fdcd6b

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

dev-tools/Dockerfile

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
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+
libgl1 \
6+
python3-pyqt5 \
7+
qemu-user-static
8+
9+
RUN apt install -y --no-install-recommends \
10+
libxcb-icccm4 \
11+
libxcb-image0 \
12+
libxcb-keysyms1 \
13+
libxcb-render-util0 \
14+
libxcb-shape0 \
15+
libxcb-xinerama0 \
16+
libxcb-xkb1 \
17+
libxkbcommon-x11-0
2418

2519
# Install test tools (Ragger framework, Speculos emulator, Ledgerblue...)
26-
RUN pip3 install --no-cache-dir "ragger[tests,all_backends]==1.25.0" "speculos==0.13.1"
20+
RUN pip3 install --break-system-packages --no-cache-dir "speculos==0.13.1"
2721

2822
# Add the enforcer script
2923
ADD ./dev-tools/enforcer.sh /opt/enforcer.sh

0 commit comments

Comments
 (0)