From ce6b0561c613268d6ae27d75d94d2f842692d418 Mon Sep 17 00:00:00 2001 From: jeanGaston Date: Tue, 6 Feb 2024 10:51:44 +0100 Subject: [PATCH] update dockerfile --- DataScraper/DOCKERFILE | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/DataScraper/DOCKERFILE b/DataScraper/DOCKERFILE index 9c1edcd..e49d9c6 100644 --- a/DataScraper/DOCKERFILE +++ b/DataScraper/DOCKERFILE @@ -1,4 +1,5 @@ -FROM resin/rpi-raspbian:latest +# Use the official Python image as a base image +FROM python:3.11-bullseye # Set the working directory in the container WORKDIR /app @@ -7,12 +8,12 @@ WORKDIR /app COPY ./main.py /app/ # Install any dependencies -RUN apt update && \ - apt install -y \ - build-essential \ - python3 python3-pip \ - libglib2.0-dev libboost-python-dev libboost-thread-dev libbluetooth-dev && \ - pip install bleak +RUN apt-get update && apt-get install -y \ + dbus \ + bluetooth + + +RUN pip3 install --no-cache-dir bleak # Set the entry point COPY entrypoint.sh .