Commit
·
9ff1ff0
1
Parent(s):
57d02cb
deploy
Browse files- Dockerfile +1 -14
Dockerfile
CHANGED
@@ -1,20 +1,7 @@
|
|
1 |
-
# Use official Python 3.9 image
|
2 |
FROM python:3.10-slim
|
3 |
-
|
4 |
-
# Set working directory
|
5 |
WORKDIR /app
|
6 |
-
|
7 |
-
# Copy requirements file
|
8 |
COPY requirements.txt .
|
9 |
-
|
10 |
-
# Install dependencies
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
-
|
13 |
-
# Copy application code
|
14 |
-
COPY app/ .
|
15 |
-
|
16 |
-
# Expose port 8000 (Hugging Face Spaces uses 7860 by default, but we'll map it)
|
17 |
EXPOSE 7860
|
18 |
-
|
19 |
-
# Start FastAPI with uvicorn
|
20 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
1 |
FROM python:3.10-slim
|
|
|
|
|
2 |
WORKDIR /app
|
|
|
|
|
3 |
COPY requirements.txt .
|
|
|
|
|
4 |
RUN pip install --no-cache-dir -r requirements.txt
|
5 |
+
COPY . .
|
|
|
|
|
|
|
|
|
6 |
EXPOSE 7860
|
|
|
|
|
7 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|