Spaces:
Build error
Build error
update gradio
Browse files- Dockerfile +0 -75
Dockerfile
DELETED
|
@@ -1,75 +0,0 @@
|
|
| 1 |
-
FROM nvidia/cudagl:11.1.1-devel-ubuntu18.04
|
| 2 |
-
|
| 3 |
-
ARG USER_NAME
|
| 4 |
-
ARG USER_PASSWORD
|
| 5 |
-
ARG USER_ID
|
| 6 |
-
ARG USER_GID
|
| 7 |
-
|
| 8 |
-
RUN apt-get update
|
| 9 |
-
RUN apt install sudo
|
| 10 |
-
RUN useradd -ms /bin/bash $USER_NAME
|
| 11 |
-
RUN usermod -aG sudo $USER_NAME
|
| 12 |
-
RUN yes $USER_PASSWORD | passwd $USER_NAME
|
| 13 |
-
|
| 14 |
-
# set uid and gid to match those outside the container
|
| 15 |
-
RUN usermod -u $USER_ID $USER_NAME
|
| 16 |
-
RUN groupmod -g $USER_GID $USER_NAME
|
| 17 |
-
|
| 18 |
-
# work directory
|
| 19 |
-
WORKDIR /home/$USER_NAME
|
| 20 |
-
|
| 21 |
-
# install system dependencies
|
| 22 |
-
COPY ./scripts/install_deps.sh /tmp/install_deps.sh
|
| 23 |
-
RUN yes "Y" | /tmp/install_deps.sh
|
| 24 |
-
|
| 25 |
-
# setup python environment
|
| 26 |
-
RUN cd $WORKDIR
|
| 27 |
-
|
| 28 |
-
# install python requirements
|
| 29 |
-
# RUN sudo python3 -m pip install --upgrade pip && \
|
| 30 |
-
# sudo python3 -m pip install --upgrade
|
| 31 |
-
|
| 32 |
-
# install pip3
|
| 33 |
-
RUN apt-get -y install python3-pip
|
| 34 |
-
RUN sudo python3 -m pip install --upgrade pip
|
| 35 |
-
|
| 36 |
-
# install pytorch
|
| 37 |
-
RUN sudo pip3 install \
|
| 38 |
-
torch==1.9.1+cu111 \
|
| 39 |
-
torchvision==0.10.1+cu111 \
|
| 40 |
-
-f https://download.pytorch.org/whl/torch_stable.html
|
| 41 |
-
|
| 42 |
-
# install GLX-Gears (for debugging)
|
| 43 |
-
RUN apt-get update && apt-get install -y \
|
| 44 |
-
mesa-utils \
|
| 45 |
-
python3-setuptools \
|
| 46 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
RUN sudo pip3 install \
|
| 50 |
-
absl-py>=0.7.0 \
|
| 51 |
-
gym==0.17.3 \
|
| 52 |
-
pybullet>=3.0.4 \
|
| 53 |
-
matplotlib>=3.1.1 \
|
| 54 |
-
opencv-python>=4.1.2.30 \
|
| 55 |
-
meshcat>=0.0.18 \
|
| 56 |
-
scipy==1.4.1 \
|
| 57 |
-
scikit-image==0.17.2 \
|
| 58 |
-
transforms3d==0.3.1 \
|
| 59 |
-
pytorch_lightning==1.0.3 \
|
| 60 |
-
tdqm \
|
| 61 |
-
hydra-core==1.0.5 \
|
| 62 |
-
wandb \
|
| 63 |
-
transformers==4.3.2 \
|
| 64 |
-
kornia \
|
| 65 |
-
ftfy \
|
| 66 |
-
regex \
|
| 67 |
-
ffmpeg \
|
| 68 |
-
imageio-ffmpeg
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
# change ownership of everything to our user
|
| 72 |
-
RUN mkdir /home/$USER_NAME/cliport
|
| 73 |
-
RUN cd /home/$USER_NAME/cliport && echo $(pwd) && chown $USER_NAME:$USER_NAME -R .
|
| 74 |
-
RUN echo "export CLIPORT_ROOT=~/cliport" >> /home/$USER_NAME/.bashrc
|
| 75 |
-
RUN echo "export PYTHONPATH=$PYTHONPATH:~/cliport" >> /home/$USER_NAME/.bashrc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|