update docker file

Change of plan
Use of raspian image
This commit is contained in:
jeanGaston 2024-02-06 10:35:21 +01:00
parent 8ef6dcf6c0
commit ff3e5d2045

View File

@ -1,5 +1,5 @@
# Use the official Python image as a base image
FROM python:3.11-bullseye
FROM resin/rpi-raspbian:jessie
# Set the working directory in the container
WORKDIR /app
@ -8,12 +8,12 @@ WORKDIR /app
COPY ./main.py /app/
# Install any dependencies
RUN apt-get update && apt-get install -y \
dbus \
bluetooth
RUN pip3 install --no-cache-dir bleak
RUN apt-get update && \
apt-get install -y \
build-essential \
python-dev python-pip \
libglib2.0-dev libboost-python-dev libboost-thread-dev libbluetooth-dev && \
pip install bleak
# Set the entry point
COPY entrypoint.sh .