Spaces:
Sleeping
Sleeping
Download Dockerfile from nab3588/customerrates: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/nab3588/customerrates/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nab3588/customerrates/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nab3588/customerrates/resolve/main/Dockerfile
535 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| ENV TRANSFORMERS_CACHE=/home/user/.cache/huggingface | |
| ENV HF_HOME=/home/user/.cache/huggingface | |
| RUN mkdir -p /home/user/.cache/huggingface /home/user/.cache/sentence-transformers && \ | |
| chown -R user:user /home/user/.cache | |
| USER user | |
| WORKDIR /app | |
| ENV PATH=/home/user/.local/bin:$PATH | |
| COPY --chown=user . . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 8501 | |
| ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |