balarajr commited on
Commit
77fbe79
·
verified ·
1 Parent(s): 9a6f996

Update Dockerfile for hackathon submission

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python 3.11 as the base image
2
+ FROM python:3.11-slim
3
+
4
+ # Install system dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /app
10
+
11
+ # Copy requirements and install
12
+ # Note: we use a combined requirement set
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy the triage package and spaces code
17
+ # We expect the build context to have these
18
+ COPY . .
19
+
20
+ # Expose the port Gradio runs on
21
+ EXPOSE 7860
22
+
23
+ # Set environment variables
24
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
25
+ ENV GRADIO_SERVER_PORT=7860
26
+ ENV PYTHONUNBUFFERED=1
27
+
28
+ # Command to run the app
29
+ CMD ["python", "app.py"]