| FROM python:3.11-slim | |
| # Set environment variables to prevent Python from writing .pyc files and to buffer stdout and stderr | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| ENV PYTHONPATH=/app | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| # Copy the files into the working directory | |
| COPY ../../vianu/__init__.py /app/vianu/__init__.py | |
| COPY ../../vianu/spock /app/vianu/spock | |
| # Install dependencies from requirements.txt | |
| RUN pip install --upgrade pip \ | |
| && pip install -r vianu/spock/requirements.txt | |
| # Expose the port your Gradio app will run on (default: 7860) | |
| EXPOSE 7868 | |
| # Command to run the application | |
| CMD ["python", "vianu/spock/launch_demo_app.py"] |