codewithjarair commited on
Commit
d0675dc
·
verified ·
1 Parent(s): 332e3d9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Hugging Face Spaces Gradio SDK image
2
+ FROM python:3.11
3
+
4
+ # Set the working directory
5
+ WORKDIR /code
6
+
7
+ # Install numpy first to satisfy build-time dependencies of pkuseg
8
+ RUN pip install --no-cache-dir numpy==1.26.4
9
+
10
+ # Copy the requirements file and install the rest of the dependencies
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy the application code
15
+ COPY . .
16
+
17
+ # Expose the port Gradio runs on
18
+ EXPOSE 7860
19
+
20
+ # Command to run the application
21
+ CMD ["python", "app.py"]