update dockerfile
This commit is contained in:
parent
41038dcdbe
commit
e7e5c7e6a5
@ -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-slim-bullseye
|
FROM python:3.11-bullseye
|
||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -8,10 +8,13 @@ WORKDIR /app
|
|||||||
COPY ./main.py /app/
|
COPY ./main.py /app/
|
||||||
|
|
||||||
# Install any dependencies
|
# Install any dependencies
|
||||||
RUN apt install bluez bluetoothctl bluetooth libbluetooth-dev dbus
|
RUN apt-get update && apt-get install -y \
|
||||||
|
bluez \
|
||||||
|
dbus \
|
||||||
|
bluetooth
|
||||||
|
|
||||||
|
|
||||||
RUN pip3 install --no-cache-dir bluepy
|
RUN pip3 install --no-cache-dir pybluez
|
||||||
|
|
||||||
# Set the entry point
|
# Set the entry point
|
||||||
COPY entrypoint.sh .
|
COPY entrypoint.sh .
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user