Delete all docker related files
Update schematics
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
# Use the official Python image as a base image
|
||||
FROM python:3.11-bullseye
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the script1.py and any other necessary files
|
||||
COPY ./main.py /app/
|
||||
|
||||
# Install any dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
dbus \
|
||||
bluetooth
|
||||
|
||||
|
||||
RUN pip3 install --no-cache-dir bleak
|
||||
|
||||
# Set the entry point
|
||||
COPY entrypoint.sh .
|
||||
RUN ["chmod", "+x", "./entrypoint.sh"]
|
||||
CMD ./entrypoint.sh
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
service dbus start
|
||||
service bluetooth start
|
||||
python3 ./main.py
|
||||
@@ -1,9 +0,0 @@
|
||||
import asyncio
|
||||
from bleak import BleakScanner
|
||||
|
||||
async def main():
|
||||
devices = await BleakScanner.discover()
|
||||
for d in devices:
|
||||
print(d)
|
||||
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user