Download Dockerfile from abcd-hide/p2t-test: direct link, hf CLI and curl.
- Browser
- Download file 777 Bytes
-
https://huggingface.co/spaces/abcd-hide/p2t-test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/abcd-hide/p2t-test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/abcd-hide/p2t-test/resolve/main/Dockerfile
777 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # システムの依存関係をインストール | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libgomp1 \ | |
| libsm6 \ | |
| libxext6 \ | |
| patchelf \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt && \ | |
| patchelf --clear-execstack /usr/local/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.cpython-310-x86_64-linux-gnu.so && \ | |
| find /usr/local/lib/python3.10/site-packages/tokenizers -name "*.so" -exec patchelf --clear-execstack {} + | |
| COPY . . | |
| # Hugging Face Spaces用のポート | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |