Download Dockerfile from veteroner/NovaAI: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/spaces/veteroner/NovaAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/veteroner/NovaAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/veteroner/NovaAI/resolve/main/Dockerfile
1.09 kB
| # π Nova AI Docker Image | |
| FROM python:3.9-slim | |
| # π Metadata | |
| LABEL maintainer="Teknova <teknova@example.com>" | |
| LABEL description="Teknova Nova AI - ΓzgΓΌn yapay zeka teknolojisi" | |
| LABEL version="1.0.0" | |
| # π§ Environment variables | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PIP_NO_CACHE_DIR=1 | |
| ENV PIP_DISABLE_PIP_VERSION_CHECK=1 | |
| # π Working directory | |
| WORKDIR /app | |
| # π§ System dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| g++ \ | |
| && 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 code | |
| COPY . . | |
| # π€ Create non-root user | |
| RUN useradd -m -u 1000 novaai && chown -R novaai:novaai /app | |
| USER novaai | |
| # π Expose port | |
| EXPOSE 8000 | |
| # π Health check | |
| HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ | |
| CMD curl -f http://localhost:8000/ || exit 1 | |
| # π Run application | |
| CMD ["python", "app.py"] |