OSOCONSULT commited on
Commit
f8a13f6
·
verified ·
1 Parent(s): 3299d51

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -4
Dockerfile CHANGED
@@ -1,11 +1,18 @@
1
  FROM python:3.9-slim
2
 
3
- WORKDIR /app
4
- COPY . /app
5
 
 
 
 
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
- RUN chmod +x /app/app.sh
8
 
 
 
 
 
9
  EXPOSE 7860
10
 
11
- CMD ["/app/app.sh"]
 
 
1
  FROM python:3.9-slim
2
 
3
+ WORKDIR /code
 
4
 
5
+ # Copy all files
6
+ COPY . .
7
+
8
+ # Install dependencies
9
  RUN pip install --no-cache-dir -r requirements.txt
 
10
 
11
+ # Fix for Hugging Face “bare mode”
12
+ RUN apt-get update && apt-get install -y curl
13
+
14
+ # Streamlit port
15
  EXPOSE 7860
16
 
17
+ # Force Streamlit to run explicitly
18
+ CMD streamlit run app.py --server.port=7860 --server.enableCORS=false