Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	| FROM ubuntu:devel | |
| USER root | |
| ENV HOME=/root \ | |
| PYTHONUNBUFFERED=1 \ | |
| GRADIO_ALLOW_FLAGGING=never \ | |
| GRADIO_NUM_PORTS=1 \ | |
| GRADIO_SERVER_NAME=0.0.0.0 \ | |
| GRADIO_THEME=huggingface \ | |
| SYSTEM=spaces | |
| COPY --chown=root --chmod=a+xrw . ~/app | |
| WORKDIR ~/app | |
| run apt-get update > /dev/null | |
| 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 | |
| run pip list --format=freeze > requirements2.txt | |
| run mkdir -p ~/miniconda | |
| run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda/install.sh | |
| run bash ~/miniconda/install.sh -b -u -p ~/miniconda | |
| run ~/miniconda/bin/conda init bash | |
| run ~/miniconda/bin/activate | |
| run ~/miniconda/bin/conda env create -f ./env.yml | |
| run ~/miniconda/bin/conda install pip | |
| run pip install --upgrade --no-cache-dir -r requirements2.txt | |
| run pip install --upgrade --no-cache-dir -r requirements.txt | |
| run git lfs install --force | |
| #run git clone https://github.com/python/cpython | |
| #run cd cpython && ./configure --enable-optimizations --with-lto --prefix=$HOME/app/python --with-system-libmpdec=no > /dev/null | |
| #run cd cpython && make > /dev/null | |
| #run cd cpython && make test > /dev/null | |
| #run cd cpython && make install > /dev/null | |
| #run cd cpython && make clean | |
| EXPOSE 7860 | |
| ENTRYPOINT ["python3", "./code.py"] | |
 
			
