Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update Dockerfile
Browse files- Dockerfile +6 -9
Dockerfile
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
FROM ubuntu:devel
|
3 |
|
4 |
USER root
|
5 |
-
|
6 |
ENV HOME=/root \
|
7 |
PYTHONUNBUFFERED=1 \
|
8 |
GRADIO_ALLOW_FLAGGING=never \
|
@@ -16,17 +16,13 @@ WORKDIR ~/app
|
|
16 |
|
17 |
run apt-get update > /dev/null
|
18 |
run apt-get install -y git curl nvidia-cuda-toolkit wget git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv python3-pip libgl1 python3 libglx-mesa0
|
|
|
19 |
|
20 |
run mkdir -p ~/miniconda
|
21 |
run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda/install.sh
|
22 |
run bash ~/miniconda/install.sh -b -u -p ~/miniconda
|
23 |
run ~/miniconda/bin/conda env create -f ./env.yml
|
24 |
-
run ~/miniconda/bin/conda install pip
|
25 |
-
run ~/miniconda/bin/conda init
|
26 |
-
run ~/miniconda/bin/activate env
|
27 |
-
run python3 -m venv env
|
28 |
|
29 |
-
run git lfs install --force
|
30 |
#run git clone https://github.com/python/cpython
|
31 |
#run cd cpython && ./configure --enable-optimizations --with-lto --prefix=$HOME/app/python --with-system-libmpdec=no > /dev/null
|
32 |
#run cd cpython && make > /dev/null
|
@@ -34,6 +30,7 @@ run git lfs install --force
|
|
34 |
#run cd cpython && make install > /dev/null
|
35 |
#run cd cpython && make clean
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
2 |
FROM ubuntu:devel
|
3 |
|
4 |
USER root
|
5 |
+
EXPOSE 7860
|
6 |
ENV HOME=/root \
|
7 |
PYTHONUNBUFFERED=1 \
|
8 |
GRADIO_ALLOW_FLAGGING=never \
|
|
|
16 |
|
17 |
run apt-get update > /dev/null
|
18 |
run apt-get install -y git curl nvidia-cuda-toolkit wget git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv python3-pip libgl1 python3 libglx-mesa0
|
19 |
+
run git lfs install
|
20 |
|
21 |
run mkdir -p ~/miniconda
|
22 |
run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda/install.sh
|
23 |
run bash ~/miniconda/install.sh -b -u -p ~/miniconda
|
24 |
run ~/miniconda/bin/conda env create -f ./env.yml
|
|
|
|
|
|
|
|
|
25 |
|
|
|
26 |
#run git clone https://github.com/python/cpython
|
27 |
#run cd cpython && ./configure --enable-optimizations --with-lto --prefix=$HOME/app/python --with-system-libmpdec=no > /dev/null
|
28 |
#run cd cpython && make > /dev/null
|
|
|
30 |
#run cd cpython && make install > /dev/null
|
31 |
#run cd cpython && make clean
|
32 |
|
33 |
+
run ~/miniconda/bin/conda init
|
34 |
+
run ~/miniconda/bin/activate env \
|
35 |
+
&& python3 -m venv env \
|
36 |
+
&& python3 ./code
|