Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update Dockerfile
Browse files- Dockerfile +14 -2
Dockerfile
CHANGED
@@ -18,6 +18,7 @@ run chmod -R a+xrw .
|
|
18 |
|
19 |
run apt update
|
20 |
run apt-get install -y git curl wget git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv libgl1-mesa-glx
|
|
|
21 |
run mkdir -p ~/miniconda3
|
22 |
run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
|
23 |
run bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
|
@@ -26,6 +27,17 @@ run ~/miniconda3/bin/conda init bash
|
|
26 |
run ~/miniconda3/bin/activate
|
27 |
run ~/miniconda3/bin/conda env create -f ./env.yml
|
28 |
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
ENTRYPOINT ["
|
|
|
18 |
|
19 |
run apt update
|
20 |
run apt-get install -y git curl wget git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv libgl1-mesa-glx
|
21 |
+
|
22 |
run mkdir -p ~/miniconda3
|
23 |
run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
|
24 |
run bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
|
|
|
27 |
run ~/miniconda3/bin/activate
|
28 |
run ~/miniconda3/bin/conda env create -f ./env.yml
|
29 |
|
30 |
+
run git lfs install --force
|
31 |
+
run git clone https://github.com/python/cpython
|
32 |
+
run cd cpython && \
|
33 |
+
./configure --enable-optimizations --with-lto --prefix=$HOME/python && \
|
34 |
+
make && \
|
35 |
+
make install && \
|
36 |
+
cd ..
|
37 |
+
|
38 |
+
run $HOME/python/python -m pip install --upgrade --no-cache-dir pip
|
39 |
+
run $HOME/python/python -m pip install --upgrade --no-cache-dir -r deps.txt
|
40 |
+
|
41 |
+
EXPOSE 7860
|
42 |
|
43 |
+
ENTRYPOINT ["$HOME/python/python", "./code.py"]
|