Yaron Koresh commited on
Commit
e38640f
·
verified ·
1 Parent(s): e5ad2e4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -5,7 +5,6 @@ USER root
5
 
6
  ENV HOME=/root \
7
  PYTHONUNBUFFERED=1 \
8
- PYTHONPATH=$HOME/app/python \
9
  GRADIO_ALLOW_FLAGGING=never \
10
  GRADIO_NUM_PORTS=1 \
11
  GRADIO_SERVER_NAME=0.0.0.0 \
@@ -16,7 +15,7 @@ COPY --chown=root --chmod=a+xrw . ~/app
16
  WORKDIR ~/app
17
 
18
  run apt-get update > /dev/null
19
- run apt-get install -y git curl nvidia-cuda-toolkit wget git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv libgl1 libglx-mesa0
20
 
21
  run mkdir -p ~/miniconda
22
  run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda/install.sh
@@ -26,14 +25,14 @@ run ~/miniconda/bin/activate
26
  run ~/miniconda/bin/conda env create -f ./env.yml
27
 
28
  run git lfs install --force
29
- run git clone https://github.com/python/cpython
30
- run cd cpython && ./configure --enable-optimizations --with-lto --prefix=$HOME/app/python --with-system-libmpdec=no > /dev/null
31
- run cd cpython && make > /dev/null
32
  #run cd cpython && make test > /dev/null
33
- run cd cpython && make install > /dev/null
34
- run cd cpython && make clean
35
 
36
- run PATH="${PATH:+${PATH}:}$PYTHONPATH:$HOME/miniconda/bin"
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
 
5
 
6
  ENV HOME=/root \
7
  PYTHONUNBUFFERED=1 \
 
8
  GRADIO_ALLOW_FLAGGING=never \
9
  GRADIO_NUM_PORTS=1 \
10
  GRADIO_SERVER_NAME=0.0.0.0 \
 
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
 
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
29
+ #run cd cpython && ./configure --enable-optimizations --with-lto --prefix=$HOME/app/python --with-system-libmpdec=no > /dev/null
30
+ #run cd cpython && make > /dev/null
31
  #run cd cpython && make test > /dev/null
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 python -m pip install --upgrade --no-cache-dir pip
38
  run python -m pip install --upgrade --no-cache-dir -r deps.txt