jbilcke-hf HF Staff commited on
Commit
3f4d88b
·
1 Parent(s): 2f0420a

remove legacy files

Browse files
Files changed (1) hide show
  1. legacy/Dockerfile +0 -126
legacy/Dockerfile DELETED
@@ -1,126 +0,0 @@
1
- FROM nvidia/cuda:12.8.1-devel-ubuntu22.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive \
4
- TZ=Europe/Paris
5
-
6
- # for headless GPU rendering
7
- ENV MUJOCO_GL="egl"
8
- ENV PYOPENGL_PLATFORM="egl"
9
-
10
- #requirements for headless GPU rendering, see also https://github.com/mmatl/pyrender/issues/149
11
- ENV NVIDIA_DRIVER_CAPABILITIES=compute,graphics,utility,video
12
-
13
- # Remove any third-party apt sources to avoid issues with expiring keys.
14
- # Install some basic utilities
15
- RUN rm -f /etc/apt/sources.list.d/*.list && \
16
- apt-get update && apt-get install -y --no-install-recommends \
17
- curl \
18
- ca-certificates \
19
- sudo \
20
- git \
21
- wget \
22
- procps \
23
- git-lfs \
24
- zip \
25
- unzip \
26
- htop \
27
- vim \
28
- nano \
29
- bzip2 \
30
- libx11-6 \
31
- # if the next line does not work, we can also try this: libegl1-mesa-dev
32
- libegl1 \
33
- libgles2 \
34
- build-essential \
35
- libsndfile-dev \
36
- software-properties-common \
37
- && rm -rf /var/lib/apt/lists/*
38
- RUN echo '{"file_format_version": "1.0.0", "ICD": {"library_path": "libEGL_nvidia.so.0"}}' >> /usr/share/glvnd/egl_vendor.d/10_nvidia.json
39
-
40
- RUN add-apt-repository ppa:flexiondotorg/nvtop && \
41
- apt-get upgrade -y && \
42
- apt-get install -y --no-install-recommends nvtop
43
-
44
- RUN curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash - && \
45
- apt-get install -y nodejs && \
46
- npm install -g configurable-http-proxy
47
-
48
- # Create a working directory
49
- WORKDIR /app
50
-
51
- # Create a non-root user and switch to it
52
- RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
53
- && chown -R user:user /app
54
- RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
55
- USER user
56
-
57
- # All users can use /home/user as their home directory
58
- ENV HOME=/home/user
59
- RUN mkdir $HOME/.cache $HOME/.config \
60
- && chmod -R 777 $HOME
61
-
62
- # Set up the Conda environment
63
- ENV CONDA_AUTO_UPDATE_CONDA=false \
64
- PATH=$HOME/miniconda/bin:$PATH
65
- RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py313_25.5.1-0-Linux-x86_64.sh \
66
- && chmod +x ~/miniconda.sh \
67
- && ~/miniconda.sh -b -p ~/miniconda \
68
- && rm ~/miniconda.sh \
69
- && conda clean -ya
70
-
71
- ENV CONDA_OVERRIDE_CUDA="12.8"
72
-
73
- # Make sure that Jax and cuSPARSE are properly installed for CUDA 12.x
74
- RUN conda install nvidia/label/cuda-12.8.1::cuda-toolkit nvidia/label/cuda-12.8.1::libcusparse
75
- RUN conda install "jaxlib=*=*cuda*" jax -c conda-forge
76
-
77
- WORKDIR $HOME/app
78
-
79
- #######################################
80
- # Start root user section
81
- #######################################
82
-
83
- USER root
84
-
85
- # User Debian packages
86
- ## Security warning : Potential user code executed as root (build time)
87
- RUN --mount=target=/root/packages.txt,source=packages.txt \
88
- apt-get update && \
89
- xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
90
- && rm -rf /var/lib/apt/lists/*
91
-
92
- RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
93
- bash /root/on_startup.sh
94
-
95
- RUN mkdir /data && chown user:user /data
96
-
97
- RUN mkdir /data/samples && chown user:user /data/samples
98
-
99
- #######################################
100
- # End root user section
101
- #######################################
102
-
103
- USER user
104
-
105
- # Python packages
106
- RUN --mount=target=requirements.txt,source=requirements.txt \
107
- pip install --no-cache-dir --upgrade -r requirements.txt
108
-
109
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
110
- COPY --chown=user . $HOME/app
111
-
112
- RUN chmod +x start_server.sh
113
-
114
- COPY --chown=user login.html /home/user/miniconda/lib/python3.13/site-packages/jupyter_server/templates/login.html
115
-
116
- COPY --chown=user samples/ /data/samples/
117
-
118
- ENV PYTHONUNBUFFERED=1 \
119
- GRADIO_ALLOW_FLAGGING=never \
120
- GRADIO_NUM_PORTS=1 \
121
- GRADIO_SERVER_NAME=0.0.0.0 \
122
- GRADIO_THEME=huggingface \
123
- SYSTEM=spaces \
124
- SHELL=/bin/bash
125
-
126
- CMD ["./start_server.sh"]