# Use the official Python image as a base image FROM python:3.11-bullseye # Set the working directory in the container WORKDIR /app # Copy the script1.py and any other necessary files COPY ./main.py /app/ # Install any dependencies RUN pip3 install --no-cache-dir bluepy RUN apt-get update RUN apt-get install -y bluez bluetooth RUN service dbus start bluetoothd # Set the entry point CMD ["python", "main.py"]