Skip to content

Commit

Permalink
docker: add pyqt5 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
aussedatlo committed Jan 14, 2025
1 parent 041dfc9 commit fea420a
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,27 @@
#

# Building the Speculos environment
FROM ghcr.io/ledgerhq/speculos-builder:latest AS builder
FROM ghcr.io/ledgerhq/speculos-builder:latest AS builder-app

ADD . /speculos
WORKDIR /speculos/

RUN cmake -Bbuild -H. -DPRECOMPILED_DEPENDENCIES_DIR=/install -DWITH_VNC=1
RUN make -C build

FROM docker.io/library/python:3.9-slim AS builder-pyqt5

RUN apt-get update && apt-get install -qy --no-install-recommends \
qt5-qmake \
build-essential \
qtbase5-dev

RUN python -m pip install \
--no-cache-dir \
--config-settings \
--confirm-license= \
--verbose \
pyqt5

# Preparing final image
FROM docker.io/library/python:3.9-slim
Expand All @@ -20,18 +33,20 @@ ADD . /speculos
WORKDIR /speculos

# Copying artifacts from previous build
COPY --from=builder /speculos/speculos/resources/ /speculos/speculos/resources/
COPY --from=builder-app /speculos/speculos/resources/ /speculos/speculos/resources/
COPY --from=builder-pyqt5 /usr/local/lib/python3.9/site-packages/ /usr/local/lib/python3.9/site-packages/

RUN pip install --upgrade pip pipenv
RUN pipenv install --deploy --system


RUN apt-get update && apt-get install -qy \
qemu-user-static \
libvncserver-dev \
gdb-multiarch \
binutils-arm-none-eabi \
&& apt-get clean
libqt5widgets5 \
libqt5gui5 \
libqt5core5a

RUN apt-get clean && rm -rf /var/lib/apt/lists/

Expand Down

0 comments on commit fea420a

Please sign in to comment.