Spaces:
Sleeping
Sleeping
Download Dockerfile from kingkill1111/2FA-ENDPOINT: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/spaces/kingkill1111/2FA-ENDPOINT/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kingkill1111/2FA-ENDPOINT/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kingkill1111/2FA-ENDPOINT/resolve/main/Dockerfile
681 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| FLAGS_use_mkldnn=1 \ | |
| OMP_NUM_THREADS=2 \ | |
| MKL_NUM_THREADS=2 \ | |
| HF_HOME=/app/.cache/huggingface \ | |
| MPLCONFIGDIR=/tmp/matplotlib | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgomp1 \ | |
| libglib2.0-0 \ | |
| libgl1 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --upgrade pip && pip install -r /app/requirements.txt | |
| COPY main.py /app/main.py | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |