update dockerfile
This commit is contained in:
parent
671fe942c9
commit
ce6b0561c6
@ -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
|
||||
WORKDIR /app
|
||||
@ -7,12 +8,12 @@ WORKDIR /app
|
||||
COPY ./main.py /app/
|
||||
|
||||
# Install any dependencies
|
||||
RUN apt update && \
|
||||
apt install -y \
|
||||
build-essential \
|
||||
python3 python3-pip \
|
||||
libglib2.0-dev libboost-python-dev libboost-thread-dev libbluetooth-dev && \
|
||||
pip install bleak
|
||||
RUN apt-get update && apt-get install -y \
|
||||
dbus \
|
||||
bluetooth
|
||||
|
||||
|
||||
RUN pip3 install --no-cache-dir bleak
|
||||
|
||||
# Set the entry point
|
||||
COPY entrypoint.sh .
|
||||
|
||||
Loading…
Reference in New Issue
Block a user