i'm still trying

This commit is contained in:
jeanGaston 2024-02-06 09:27:28 +01:00
parent 613ebb200a
commit 41038dcdbe
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# Use the official Python image as a base image # 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 # Set the working directory in the container
WORKDIR /app WORKDIR /app
@ -8,11 +8,11 @@ WORKDIR /app
COPY ./main.py /app/ COPY ./main.py /app/
# Install any dependencies # Install any dependencies
RUN apt-get update && apt-get install -y \ RUN apt install bluez bluetoothctl bluetooth libbluetooth-dev dbus
bluez \
dbus
RUN pip3 install --no-cache-dir bluepy RUN pip3 install --no-cache-dir bluepy
# Set the entry point # Set the entry point
CMD ["python", "main.py"] COPY entrypoint.sh .
CMD ./entrypoint.sh

View File

@ -0,0 +1,3 @@
service dbus start
service bluetooth start
python3 ./main.py