Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -28,6 +28,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 28 |
libasound2 \
|
| 29 |
&& rm -rf /var/lib/apt/lists/*
|
| 30 |
|
|
|
|
|
|
|
|
|
|
| 31 |
# Copy pyproject.toml and install Python dependencies
|
| 32 |
COPY pyproject.toml .
|
| 33 |
RUN pip install -e .
|
|
@@ -40,9 +43,10 @@ RUN playwright install
|
|
| 40 |
|
| 41 |
# Set environment variables
|
| 42 |
ENV PYTHONUNBUFFERED=1
|
|
|
|
| 43 |
|
| 44 |
# Expose the port the app runs on
|
| 45 |
EXPOSE 8000
|
| 46 |
|
| 47 |
# Command to run the FastAPI application with uvicorn
|
| 48 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
| 28 |
libasound2 \
|
| 29 |
&& rm -rf /var/lib/apt/lists/*
|
| 30 |
|
| 31 |
+
# Create data directory and set permissions
|
| 32 |
+
RUN mkdir -p /app/data && chmod 777 /app/data
|
| 33 |
+
|
| 34 |
# Copy pyproject.toml and install Python dependencies
|
| 35 |
COPY pyproject.toml .
|
| 36 |
RUN pip install -e .
|
|
|
|
| 43 |
|
| 44 |
# Set environment variables
|
| 45 |
ENV PYTHONUNBUFFERED=1
|
| 46 |
+
ENV CRAWL4AI_DB_PATH=/app/data/.crawl4ai
|
| 47 |
|
| 48 |
# Expose the port the app runs on
|
| 49 |
EXPOSE 8000
|
| 50 |
|
| 51 |
# Command to run the FastAPI application with uvicorn
|
| 52 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|