Download Dockerfile from bg5/zai: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/bg5/zai/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bg5/zai/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bg5/zai/resolve/main/Dockerfile
499 Bytes
| FROM python:3.12-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Create data and logs directories with proper permissions | |
| RUN mkdir -p /app/data /app/logs && \ | |
| chmod 755 /app/data /app/logs | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Set environment variable for database path | |
| ENV DB_PATH=/data/tokens.db | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "main.py"] | |