Spanicin commited on
Commit
a881b89
·
verified ·
1 Parent(s): 8ea04e3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image for Python and dependencies
2
+ FROM python:3.9-slim
3
+
4
+ # Set environment variables for Hugging Face token
5
+ ENV HUGGINGFACE_TOKEN=$HUGGINGFACE_TOKEN
6
+
7
+ # Set the working directory inside the container
8
+ WORKDIR /app
9
+
10
+ # Copy requirements.txt to the working directory
11
+ COPY requirements.txt .
12
+
13
+ # Install required Python packages
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy the entire project to the working directory
17
+ COPY . .
18
+
19
+ # Expose the port Flask will run on
20
+ EXPOSE 5000
21
+
22
+ # Command to run the Flask app
23
+ CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]