update dockerfile

This commit is contained in:
jeanGaston 2024-02-06 10:51:44 +01:00
parent 671fe942c9
commit ce6b0561c6

View File

@ -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 # Set the working directory in the container
WORKDIR /app WORKDIR /app
@ -7,12 +8,12 @@ WORKDIR /app
COPY ./main.py /app/ COPY ./main.py /app/
# Install any dependencies # Install any dependencies
RUN apt update && \ RUN apt-get update && apt-get install -y \
apt install -y \ dbus \
build-essential \ bluetooth
python3 python3-pip \
libglib2.0-dev libboost-python-dev libboost-thread-dev libbluetooth-dev && \
pip install bleak RUN pip3 install --no-cache-dir bleak
# Set the entry point # Set the entry point
COPY entrypoint.sh . COPY entrypoint.sh .