Spaces:
Sleeping
Sleeping
| FROM python:3.12 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| RUN pip install --no-cache-dir --upgrade pip | |
| COPY --chown=user . $HOME/app | |
| RUN pip install --user -r requirements.txt | |
| RUN pip uninstall -y triton | |
| RUN mkdir -p $HOME/.cache/huggingface && chmod 777 $HOME/.cache/huggingface | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "DNABERT2-FINAL.py", "--server.port=7860", "--server.address=0.0.0.0"] |