Download Dockerfile from shrijayan/test: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/spaces/shrijayan/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shrijayan/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shrijayan/test/resolve/main/Dockerfile
456 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends curl gcc python3-dev && \ | |
| rm -rf /var/lib/apt/lists/* && \ | |
| mkdir -p /data && \ | |
| chmod 777 /data && \ | |
| useradd -m appuser && \ | |
| chown appuser:appuser /data | |
| USER appuser | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py config.yaml ./ | |
| ENV MPLCONFIGDIR=/tmp/matplotlib | |
| CMD ["python", "app.py"] |