| FROM raspbian/stretch:latest |
| |
| RUN export DEBIAN_FRONTEND=noninteractive \ |
| && apt update \ |
| && apt upgrade -y \ |
| && apt install -y \ |
| python2.7 \ |
| python-certifi \ |
| ca-certificates \ |
| curl \ |
| libusb-1.0-0 \ |
| bash \ |
| openssl \ |
| libssl-dev \ |
| adb |
| |
| RUN c_rehash |
| # Run c_rehash because https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923479 |
| |
| RUN ln -s /usr/lib/libusb-1.0.so.0.1.0 /usr/lib/libusb-1.0.so |
| RUN ln -s /usr/bin/adb /usr/bin/adb.1.0.35 |
| |
| COPY . / |
| |
| # Swarming requires a .boto file, even if it's empty. |
| RUN touch /root/.boto |
| |
| # Swarming can only detect running inside a Docker container, it can't detect |
| # containerd, so let's fake it out. |
| # https://cs.chromium.org/chromium/infra/luci/appengine/swarming/swarming_bot/api/platforms/linux.py?type=cs&q=get_inside_docker&sq=package:chromium&g=0 |
| RUN touch /.dockerenv |
| |
| CMD ["/usr/bin/bot_config"] |