Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update Dockerfile
Browse files- Dockerfile +9 -9
Dockerfile
CHANGED
@@ -17,7 +17,7 @@ COPY --chown=user . $HOME/app
|
|
17 |
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 |
|
22 |
run mkdir -p ~/miniconda3
|
23 |
run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
|
@@ -29,15 +29,15 @@ 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 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
38 |
-
run
|
39 |
-
run
|
40 |
|
41 |
EXPOSE 7860
|
42 |
|
43 |
-
ENTRYPOINT ["
|
|
|
17 |
run chmod -R a+xrw .
|
18 |
|
19 |
run apt update
|
20 |
+
run apt-get install -y git curl nvidia-cuda-toolkit wget git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv libmpdec-dev 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
|
|
|
29 |
|
30 |
run git lfs install --force
|
31 |
run git clone https://github.com/python/cpython
|
32 |
+
run cd cpython
|
33 |
+
run ./configure --enable-optimizations --with-lto --prefix=$HOME/python
|
34 |
+
run make
|
35 |
+
run make install
|
36 |
+
run PATH="$HOME/python${PATH:+:${PATH}}"
|
37 |
|
38 |
+
run python -m pip install --upgrade --no-cache-dir pip
|
39 |
+
run python -m pip install --upgrade --no-cache-dir -r deps.txt
|
40 |
|
41 |
EXPOSE 7860
|
42 |
|
43 |
+
ENTRYPOINT ["python", "./code.py"]
|