Spaces:
Runtime error
Runtime error
Commit ·
dd14bf0
1
Parent(s): 7e915f9
Add Dockerfile
Browse files- .gitignore +1 -0
- Dockerfile +18 -0
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
CV_Extractor_Endpoint
|
Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dockerfile
|
| 2 |
+
FROM python:3.10-slim
|
| 3 |
+
|
| 4 |
+
# Create working dir
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install Python dependencies
|
| 8 |
+
COPY requirements.txt .
|
| 9 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
+
|
| 11 |
+
# Copy your code
|
| 12 |
+
COPY . .
|
| 13 |
+
|
| 14 |
+
# Expose the port HF will route to
|
| 15 |
+
ENV PORT 7860
|
| 16 |
+
|
| 17 |
+
# Launch Uvicorn on HF’s $PORT
|
| 18 |
+
CMD ["bash", "-lc", "uvicorn app:app --host 0.0.0.0 --port $PORT"]
|