Download Dockerfile from aaarchitha7/kcat-km-model-ext: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/aaarchitha7/kcat-km-model-ext/resolve/main/Dockerfile
- Command line
-
hf download hf://aaarchitha7/kcat-km-model-ext/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/aaarchitha7/kcat-km-model-ext/resolve/main/Dockerfile
712 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| OMP_NUM_THREADS=2 \ | |
| NTHREADS=2 \ | |
| HF_HOME=/tmp/hf \ | |
| HF_HUB_OFFLINE=1 \ | |
| TRANSFORMERS_OFFLINE=1 \ | |
| TOKENIZERS_PARALLELISM=false | |
| WORKDIR /app | |
| # lightgbm needs this system library | |
| RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # --- ESM block: DELETE these 2 lines (and the 'transformers' line in requirements.txt) for Stage 1 --- | |
| RUN pip install --no-cache-dir torch==2.4.1 --index-url https://download.pytorch.org/whl/cpu | |
| # --- end ESM block --- | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY features.py predict.py ./ | |
| COPY weights ./weights | |