Skip to content

Commit

Permalink
Increase reusable steps of docker build (#8282)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukepo authored and pull[bot] committed Aug 2, 2021
1 parent f98f02e commit c2269ec
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/controller/python/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ FROM ubuntu:focal

ENV DEBIAN_FRONTEND noninteractive

COPY /out/debug/controller/python/chip-0.0-cp37-abi3-linux_x86_64.whl /whl/
COPY /test/entrypoint.sh /entrypoint.sh
COPY /test/test_scripts /usr/bin/

RUN apt-get update && \
apt-get install --no-install-recommends -y ca-certificates libglib2.0-dev avahi-daemon libavahi-client3 \
python3 python3-dev python3-pip libcairo2-dev libdbus-1-dev libgirepository1.0-dev avahi-utils \
libjpeg-dev libgif-dev gdb && \
pip3 install /whl/chip-0.0-cp37-abi3-linux_x86_64.whl
libjpeg-dev libgif-dev gdb

COPY /test/entrypoint.sh /entrypoint.sh
COPY /test/test_scripts /usr/bin/
COPY /out/debug/controller/python/chip-0.0-cp37-abi3-linux_x86_64.whl /whl/

RUN pip3 install /whl/chip-0.0-cp37-abi3-linux_x86_64.whl

ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit c2269ec

Please sign in to comment.