18 lines
347 B
Docker
18 lines
347 B
Docker
# 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"]
|