hemantn commited on
Commit
e6c7423
Β·
1 Parent(s): 62a1c17

docker file added

Browse files
Files changed (3) hide show
  1. Dockerfile +24 -0
  2. README.md +1 -2
  3. requirements.txt +4 -3
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /antibody-database
4
+
5
+ # Copy requirements first for better caching
6
+ COPY requirements.txt .
7
+
8
+ # Install dependencies with upgrade flag
9
+ RUN pip install --no-cache-dir --upgrade pip && \
10
+ pip install --no-cache-dir --upgrade -r requirements.txt
11
+
12
+ # Copy application files
13
+ COPY . .
14
+
15
+ # Expose Gradio port
16
+ EXPOSE 7860
17
+
18
+ # Set environment variables
19
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
20
+ ENV GRADIO_SERVER_PORT=7860
21
+
22
+ # Run the application
23
+ CMD ["python", "app.py"]
24
+
README.md CHANGED
@@ -3,8 +3,7 @@ title: Antibody Database Dashboard
3
  emoji: πŸ”Ž
4
  colorFrom: blue
5
  colorTo: green
6
- sdk: gradio
7
- sdk_version: 4.0.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
3
  emoji: πŸ”Ž
4
  colorFrom: blue
5
  colorTo: green
6
+ sdk: docker
 
7
  app_file: app.py
8
  pinned: false
9
  license: mit
requirements.txt CHANGED
@@ -1,9 +1,10 @@
1
- --force-reinstall
2
  gradio==5.47.0
3
  gradio-client==1.13.2
4
  pandas==2.3.2
5
  plotly==6.3.0
6
  huggingface-hub==0.35.1
7
  numpy==2.2.6
8
-
9
-
 
 
 
 
1
  gradio==5.47.0
2
  gradio-client==1.13.2
3
  pandas==2.3.2
4
  plotly==6.3.0
5
  huggingface-hub==0.35.1
6
  numpy==2.2.6
7
+ fastapi==0.117.1
8
+ uvicorn==0.37.0
9
+ pillow==11.3.0
10
+ python-multipart==0.0.20