InfluxDB support and dockerisation
This commit is contained in:
17
docker/Dockerfile
Normal file
17
docker/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# Use a lightweight Python image for ARM (Pi)
|
||||
FROM python:3.12-slim-bullseye
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy requirements first (better caching)
|
||||
COPY ../requirements.txt .
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the code
|
||||
COPY ../ ./
|
||||
|
||||
# Default command
|
||||
CMD ["python", "main.py"]
|
||||
Reference in New Issue
Block a user