WeatherStation/DataScraper/DOCKERFILE
2024-02-06 09:27:28 +01:00

18 lines
411 B
Plaintext

# Use the official Python image as a base image
FROM python:3.11-slim-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 install bluez bluetoothctl bluetooth libbluetooth-dev dbus
RUN pip3 install --no-cache-dir bluepy
# Set the entry point
COPY entrypoint.sh .
CMD ./entrypoint.sh