Spaces:
Configuration error
Configuration error
Commit ·
120ff8a
1
Parent(s): 9464e15
Fix Hugging Face README config
Browse files- Dockerfile +1 -12
- Readme.md +3 -1
Dockerfile
CHANGED
|
@@ -1,25 +1,14 @@
|
|
| 1 |
-
# 1. Use the official Python image
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
-
# 2. Set the 'Home' of our app inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# 3. Copy only the requirements first (to make building faster)
|
| 8 |
COPY requirements.txt .
|
| 9 |
-
|
| 10 |
-
# 4. Install all the libraries for both Frontend and Backend
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
# 5. Copy your whole project into the container
|
| 14 |
-
# This includes the frontend, backend, and start.sh
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
-
# 6. Grant permission for the container to run the script
|
| 18 |
RUN chmod +x start.sh
|
| 19 |
|
| 20 |
-
# 7. Hugging Face specifically looks for port 7860
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
-
|
| 24 |
-
# This is what kicks off both FastAPI and Streamlit
|
| 25 |
-
CMD ["./start.sh"]
|
|
|
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
COPY requirements.txt .
|
|
|
|
|
|
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
|
|
|
|
|
|
| 8 |
COPY . .
|
| 9 |
|
|
|
|
| 10 |
RUN chmod +x start.sh
|
| 11 |
|
|
|
|
| 12 |
EXPOSE 7860
|
| 13 |
|
| 14 |
+
CMD ["./start.sh"]
|
|
|
|
|
|
Readme.md
CHANGED
|
@@ -6,4 +6,6 @@ colorTo: green
|
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
-
---
|
|
|
|
|
|
|
|
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
Health Score Prediction App using FastAPI (backend) and Streamlit (frontend).
|