# Use the official Python image for ARM32v7 as the base image FROM arm32v7/python:3.7-slim-buster # Set the working directory in the container WORKDIR /app # Copy the Python application code and requirements.txt into the container COPY requirements.txt /app/ COPY . . # Run RUN pip install --no-cache-dir -r requirements.txt # Command to run the application CMD [ "python3", "-u", "./main.py" ]