FROM python:3.11-slim # Set the working directory WORKDIR /usr/src/frontend # Copy the necessary files to the working directory COPY fe/requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt COPY fe/ ./fe/ COPY config.py . # Expose the frontend port and run the frontend EXPOSE 7860 CMD ["python", "-m", "fe.gradio_app"]