fffiloni commited on
Commit
d2be6c5
1 Parent(s): 8c17f89

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +39 -0
Dockerfile ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ build-essential \
5
+ python3.9 \
6
+ python3-pip \
7
+ libssl-dev \
8
+ libffi-dev \
9
+ git \
10
+ wget \
11
+ ca-certificates \
12
+ libgl1-mesa-glx \
13
+ libglib2.0-0 \
14
+ python3-dev \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Create a non-root user
18
+ RUN useradd -m -u 1000 user
19
+
20
+ USER user
21
+
22
+ ENV HOME=/home/user \
23
+ PATH=/home/user/.local/bin:$PATH
24
+
25
+ # Clone the RB-Modulation repository
26
+ RUN git clone https://github.com/google/RB-Modulation.git $HOME/app
27
+
28
+ # Set the working directory
29
+ WORKDIR $HOME/app
30
+
31
+ # Install any required Python packages
32
+ # Uncomment and modify the following line if there's a requirements.txt file
33
+ # RUN pip install --no-cache-dir -r requirements.txt
34
+
35
+ # Install Gradio
36
+ RUN pip install --no-cache-dir gradio
37
+
38
+ # Command to run the Gradio app
39
+ CMD ["python", "app.py"]