Spaces:
Runtime error
Runtime error
Download Dockerfile from build-small-hackathon/maindlock: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/maindlock/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/build-small-hackathon/maindlock/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/build-small-hackathon/maindlock/resolve/main/Dockerfile
432 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgomp1 libcurl4 ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # writable caches for the HF user; llama.cpp backend by default | |
| ENV HOME=/tmp HF_HOME=/tmp/hf MINDLOCK_BACKEND=llamacpp PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |