67Ayush87 commited on
Commit
ab5db5b
·
verified ·
1 Parent(s): e77f3c8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile CHANGED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official lightweight Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory inside container
5
+ WORKDIR /app
6
+
7
+ # Copy all project files into the container
8
+ COPY . /app
9
+
10
+ # Upgrade pip and install dependencies
11
+ RUN pip install --no-cache-dir --upgrade pip && \
12
+ pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Expose port for Streamlit (Hugging Face uses port 7860)
15
+ EXPOSE 7860
16
+
17
+ # Run the Streamlit app
18
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]