Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -4
Dockerfile
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
FROM python:3.9-slim
|
2 |
|
3 |
-
WORKDIR /
|
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 |
-
|
|
|
|
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
|