Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.8
|
2 |
+
RUN apt update && apt install -y default-jdk default-jre git
|
3 |
+
ENV JAVA_HOME=/usr/lib/jvm/default-java
|
4 |
+
RUN pip install "py-data-juicer[all] @ git+https://github.com/alibaba/data-juicer.git"
|
5 |
+
RUN pip install fsspec==2023.3.0
|
6 |
+
RUN useradd -m -u 1000 dj
|
7 |
+
USER dj
|
8 |
+
ENV HOME=/home/dj
|
9 |
+
RUN cd $HOME/ && git clone https://github.com/alibaba/data-juicer.git && cd ../
|
10 |
+
WORKDIR $HOME/data-juicer/demos/auto_evaluation_helm
|
11 |
+
RUN chown -R dj $HOME/
|
12 |
+
CMD ["streamlit", "run", "app.py"]
|