From 41038dcdbe087ede8f87c95aa7942474c1b31e16 Mon Sep 17 00:00:00 2001 From: jeanGaston Date: Tue, 6 Feb 2024 09:27:28 +0100 Subject: [PATCH] i'm still trying --- DataScraper/DOCKERFILE | 10 +++++----- DataScraper/entrypoint.sh | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 DataScraper/entrypoint.sh diff --git a/DataScraper/DOCKERFILE b/DataScraper/DOCKERFILE index ca9acb4..74115e7 100644 --- a/DataScraper/DOCKERFILE +++ b/DataScraper/DOCKERFILE @@ -1,5 +1,5 @@ # Use the official Python image as a base image -FROM python:3.11-bullseye +FROM python:3.11-slim-bullseye # Set the working directory in the container WORKDIR /app @@ -8,11 +8,11 @@ WORKDIR /app COPY ./main.py /app/ # Install any dependencies -RUN apt-get update && apt-get install -y \ - bluez \ - dbus +RUN apt install bluez bluetoothctl bluetooth libbluetooth-dev dbus + RUN pip3 install --no-cache-dir bluepy # Set the entry point -CMD ["python", "main.py"] \ No newline at end of file +COPY entrypoint.sh . +CMD ./entrypoint.sh \ No newline at end of file diff --git a/DataScraper/entrypoint.sh b/DataScraper/entrypoint.sh new file mode 100644 index 0000000..95dbd55 --- /dev/null +++ b/DataScraper/entrypoint.sh @@ -0,0 +1,3 @@ +service dbus start +service bluetooth start +python3 ./main.py \ No newline at end of file