Spaces:
Runtime error
Runtime error
Download Dockerfile from Cyberlgl/CyberLegalAIendpoint: direct link, hf CLI and curl.
- Browser
- Download file 811 Bytes
-
https://huggingface.co/spaces/Cyberlgl/CyberLegalAIendpoint/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Cyberlgl/CyberLegalAIendpoint/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Cyberlgl/CyberLegalAIendpoint/resolve/main/Dockerfile
811 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 | |
| WORKDIR $HOME/app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| bash \ | |
| curl \ | |
| ca-certificates \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN mkdir -p /data && chmod 777 /data | |
| RUN mkdir -p /home/user/app && chown -R user:user /home/user | |
| COPY --chown=user requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| RUN chmod +x startup.sh && \ | |
| touch /home/user/app/lightrag.log && \ | |
| chown user:user /home/user/app/lightrag.log | |
| USER user | |
| EXPOSE 8000 9621 9622 | |
| CMD ["./startup.sh"] |