FROM python:3.10-slim # Set environment variables ENV PYTHONUNBUFFERED=1 ENV CHROMEDRIVER_VERSION=113.0.5672.63 ENV DEBIAN_FRONTEND=noninteractive ENV CHROMEDRIVER_PATH=/app/chromedriver # Set a working directory for the app WORKDIR /app # Copy the requirements.txt into the container COPY requirements.txt /app/ # Install Python dependencies from requirements.txt RUN pip install -r requirements.txt # Install additional required Python packages RUN pip install -U g4f uvicorn fastapi # Copy the rest of the application code into the container COPY . /app/ # Expose the port the app runs on EXPOSE 5000 # Command to run the application (start Flask server) CMD ["python3", "app.py"]