Yaron Koresh commited on
Commit
61513f4
·
verified ·
1 Parent(s): 1c69c1d

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -36
Dockerfile DELETED
@@ -1,36 +0,0 @@
1
-
2
- FROM ubuntu:devel
3
-
4
- USER root
5
- EXPOSE 7860
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 \
11
- GRADIO_THEME=huggingface \
12
- SYSTEM=spaces
13
-
14
- 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 python3-pip libgl1 python3 libglx-mesa0
19
- run git lfs install
20
-
21
- run mkdir -p ~/miniconda
22
- run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda/install.sh
23
- run bash ~/miniconda/install.sh -b -u -p ~/miniconda
24
- run ~/miniconda/bin/conda env create -f ./env.yml
25
-
26
- #run git clone https://github.com/python/cpython
27
- #run cd cpython && ./configure --enable-optimizations --with-lto --prefix=$HOME/app/python --with-system-libmpdec=no > /dev/null
28
- #run cd cpython && make > /dev/null
29
- #run cd cpython && make test > /dev/null
30
- #run cd cpython && make install > /dev/null
31
- #run cd cpython && make clean
32
-
33
- run ~/miniconda/bin/conda init
34
- run ~/miniconda/bin/activate env
35
-
36
- entrypoint ["$HOME/miniconda/bin/conda","run","\"code.py\""]