Spaces:
Runtime error
Runtime error
Download Dockerfile from OLETECH/BUSINESSTRACKER: direct link, hf CLI and curl.
- Browser
- Download file 715 Bytes
-
https://huggingface.co/spaces/OLETECH/BUSINESSTRACKER/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/OLETECH/BUSINESSTRACKER/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/OLETECH/BUSINESSTRACKER/resolve/main/Dockerfile
715 Bytes
| FROM python:3.12-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PYTHONPATH=/home/user/app | |
| # Create and set working directory | |
| WORKDIR /home/user/app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libpq-dev \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all project files | |
| COPY . . | |
| # Collect static files, migrate, and start gunicorn | |
| # Note: We bind to 0.0.0.0:7860 as required by Hugging Face | |
| CMD python manage.py collectstatic --noinput && \ | |
| python manage.py migrate && \ | |
| gunicorn wsgi:application --bind 0.0.0.0:7860 |