WeatherStation/DataScraper/DOCKERFILE
jeanGaston 93a419d4f0 update dockerfile
permission issues with entrypoint.sh
2024-02-06 10:54:33 +01:00

21 lines
449 B
Plaintext

# 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