edyoshikun commited on
Commit
0237ee2
·
1 Parent(s): 1130d52

docker file to bump viscy to python 3.11 dependencies

Browse files
Files changed (2) hide show
  1. Dockerfile +30 -0
  2. app.py +1 -1
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /code
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ git-lfs \
9
+ ffmpeg \
10
+ libsm6 \
11
+ libxext6 \
12
+ cmake \
13
+ rsync \
14
+ libgl1-mesa-glx \
15
+ && rm -rf /var/lib/apt/lists/* \
16
+ && git lfs install
17
+
18
+ # Copy requirements and install Python dependencies
19
+ COPY requirements.txt .
20
+ RUN pip install --no-cache-dir --upgrade pip && \
21
+ pip install --no-cache-dir -r requirements.txt
22
+
23
+ # Copy the rest of the application
24
+ COPY . .
25
+
26
+ # Expose the port Gradio runs on
27
+ EXPOSE 7860
28
+
29
+ # Command to run the application
30
+ CMD ["python", "app.py"]
app.py CHANGED
@@ -392,4 +392,4 @@ if __name__ == "__main__":
392
  )
393
 
394
  # Launch the Gradio app
395
- demo.launch()
 
392
  )
393
 
394
  # Launch the Gradio app
395
+ demo.launch(server_name="0.0.0.0", server_port=7860)