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