Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -15,7 +15,7 @@ COPY --chown=root --chmod=a+xrw . ~/app
|
|
| 15 |
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
|
| 19 |
|
| 20 |
run mkdir -p ~/miniconda
|
| 21 |
run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda/install.sh
|
|
@@ -23,6 +23,10 @@ run bash ~/miniconda/install.sh -b -u -p ~/miniconda
|
|
| 23 |
run ~/miniconda/bin/conda init bash
|
| 24 |
run ~/miniconda/bin/activate
|
| 25 |
run ~/miniconda/bin/conda env create -f ./env.yml
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
run git lfs install --force
|
| 28 |
#run git clone https://github.com/python/cpython
|
|
@@ -32,10 +36,6 @@ run git lfs install --force
|
|
| 32 |
#run cd cpython && make install > /dev/null
|
| 33 |
#run cd cpython && make clean
|
| 34 |
|
| 35 |
-
run PATH="${PATH:+${PATH}:}$HOME/miniconda/bin"
|
| 36 |
-
|
| 37 |
-
#run pip3 install --upgrade --no-cache-dir -r deps.txt
|
| 38 |
-
|
| 39 |
EXPOSE 7860
|
| 40 |
|
| 41 |
ENTRYPOINT ["python3", "./code.py"]
|
|
|
|
| 15 |
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 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
|
|
|
|
| 23 |
run ~/miniconda/bin/conda init bash
|
| 24 |
run ~/miniconda/bin/activate
|
| 25 |
run ~/miniconda/bin/conda env create -f ./env.yml
|
| 26 |
+
run PATH="${PATH:+${PATH}:}$HOME/miniconda/bin"
|
| 27 |
+
|
| 28 |
+
run conda install pip
|
| 29 |
+
run pip install --upgrade --no-cache-dir -r requirements.txt
|
| 30 |
|
| 31 |
run git lfs install --force
|
| 32 |
#run git clone https://github.com/python/cpython
|
|
|
|
| 36 |
#run cd cpython && make install > /dev/null
|
| 37 |
#run cd cpython && make clean
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
EXPOSE 7860
|
| 40 |
|
| 41 |
ENTRYPOINT ["python3", "./code.py"]
|