| # Use Python base image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy project files | |
| COPY . /app | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir gradio requests | |
| # Expose Gradio's default port | |
| EXPOSE 7860 | |
| # Environment variables (can be overridden at runtime) | |
| ENV NAVER_CLIENT_ID=your_client_id | |
| ENV NAVER_CLIENT_SECRET=your_client_secret | |
| # Command to run the Gradio app | |
| CMD ["python", "server.py"] |