19 lines
454 B
Plaintext
19 lines
454 B
Plaintext
FROM resin/rpi-raspbian:latest
|
|
|
|
# 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 update && \
|
|
apt install -y \
|
|
build-essential \
|
|
python3 python3-pip \
|
|
libglib2.0-dev libboost-python-dev libboost-thread-dev libbluetooth-dev && \
|
|
pip install bleak
|
|
|
|
# Set the entry point
|
|
COPY entrypoint.sh .
|
|
CMD ./entrypoint.sh |