WeatherStation/DataScraper/DOCKERFILE
jeanGaston fa80edff71 Uptade
Add Root execution pour le scrapper
Add DB to docker compose
2024-01-30 10:22:50 +01:00

16 lines
345 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 pip3 install --no-cache-dir bluepy
# Set the entry point
CMD ["python", "main.py"]
#Run as root
USER root