update docker file
Change of plan Use of raspian image
This commit is contained in:
parent
8ef6dcf6c0
commit
ff3e5d2045
@ -1,5 +1,5 @@
|
|||||||
# Use the official Python image as a base image
|
FROM resin/rpi-raspbian:jessie
|
||||||
FROM python:3.11-bullseye
|
|
||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -8,12 +8,12 @@ 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-get update && \
|
||||||
dbus \
|
apt-get install -y \
|
||||||
bluetooth
|
build-essential \
|
||||||
|
python-dev python-pip \
|
||||||
|
libglib2.0-dev libboost-python-dev libboost-thread-dev libbluetooth-dev && \
|
||||||
RUN pip3 install --no-cache-dir bleak
|
pip install bleak
|
||||||
|
|
||||||
# Set the entry point
|
# Set the entry point
|
||||||
COPY entrypoint.sh .
|
COPY entrypoint.sh .
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user