Spaces:
Running
Running
Download Dockerfile from kan0621/Stimuli_Generator: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/spaces/kan0621/Stimuli_Generator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kan0621/Stimuli_Generator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kan0621/Stimuli_Generator/resolve/main/Dockerfile
579 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Create necessary directories | |
| RUN mkdir -p sessions | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set environment variables for production | |
| ENV PRODUCTION=true | |
| ENV PORT=7860 | |
| # Run the application | |
| CMD ["python", "app.py"] | |