Spaces:
Runtime error
Runtime error
Download Dockerfile from Zunayedthebot/tex2lab: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/spaces/Zunayedthebot/tex2lab/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Zunayedthebot/tex2lab/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Zunayedthebot/tex2lab/resolve/main/Dockerfile
581 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install Python packages | |
| COPY requirements_hf.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Create necessary directories | |
| RUN mkdir -p static/uploads static/processed data | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 | |
| # Run the application | |
| CMD ["python", "app_hf.py"] | |