FROM python:3.12.3-slim # Set environment variables ENV PYTHONUNBUFFERED 1 WORKDIR /app COPY requirements_server.txt ./ RUN pip install --no-cache-dir -r requirements_server.txt # Copy the application code COPY . . # Expose the port EXPOSE 8080 # Start the backend app CMD ["python", "src/main.py"]