Spaces:
Sleeping
Sleeping
Download Dockerfile from datajuicer/process_cft_zh_data: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/datajuicer/process_cft_zh_data/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/datajuicer/process_cft_zh_data/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/datajuicer/process_cft_zh_data/resolve/main/Dockerfile
482 Bytes
| FROM python:3.8 | |
| RUN apt update && apt install -y default-jdk default-jre git | |
| ENV JAVA_HOME=/usr/lib/jvm/default-java | |
| RUN pip install "py-data-juicer[all] @ git+https://github.com/alibaba/data-juicer.git" | |
| RUN pip install fsspec==2023.3.0 | |
| RUN useradd -m -u 1000 dj | |
| USER dj | |
| ENV HOME=/home/dj | |
| RUN cd $HOME/ && git clone https://github.com/alibaba/data-juicer.git && cd ../ | |
| WORKDIR $HOME/data-juicer/demos/process_cft_zh_data | |
| RUN chown -R dj $HOME/ | |
| CMD ["streamlit", "run", "app.py"] |