Tongyu-Yan commited on
Commit
00fa369
·
1 Parent(s): 05784d6

docker added

Browse files
Files changed (2) hide show
  1. Dockerfile +18 -0
  2. requirements.txt +3 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python base image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements.txt and install dependencies
8
+ COPY requirements.txt .
9
+ RUN pip install --upgrade pip && pip install -r requirements.txt
10
+
11
+ # Copy your application code
12
+ COPY . .
13
+
14
+ # Expose the port used by Gradio (default is 7860)
15
+ EXPOSE 7860
16
+
17
+ # Run your app
18
+ CMD ["python", "app.py"]
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ gradio
2
+ openai
3
+ requests