Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -7
Dockerfile
CHANGED
|
@@ -1,19 +1,20 @@
|
|
| 1 |
-
# Use an official Python image
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
-
# Set
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 12 |
-
&& pip install --no-cache-dir
|
| 13 |
-
|
| 14 |
|
| 15 |
-
# Expose
|
| 16 |
EXPOSE 7860
|
| 17 |
|
| 18 |
-
# Run
|
| 19 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
| 1 |
+
# Use an official Python image
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
+
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy project files
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 12 |
+
&& pip install --no-cache-dir -r requirements.txt \
|
| 13 |
+
&& pip install --no-cache-dir langgraph
|
| 14 |
|
| 15 |
+
# Expose FastAPI port
|
| 16 |
EXPOSE 7860
|
| 17 |
|
| 18 |
+
# Run FastAPI app
|
| 19 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 20 |
+
|