Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -22,7 +22,14 @@ COPY src/ ./src/
|
|
| 22 |
# Install Python dependencies
|
| 23 |
RUN pip3 install --use-feature=fast-deps -r requirements.txt
|
| 24 |
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
|
| 28 |
|
|
|
|
| 22 |
# Install Python dependencies
|
| 23 |
RUN pip3 install --use-feature=fast-deps -r requirements.txt
|
| 24 |
|
| 25 |
+
# Set data directories to writable locations
|
| 26 |
+
ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
|
| 27 |
+
ENV CRAWL4AI_BASE_DIRECTORY=/app
|
| 28 |
+
ENV CRAWL4AI_DATA_DIR=/app/.crawl4ai
|
| 29 |
+
|
| 30 |
+
# Create directories with proper permissions
|
| 31 |
+
RUN mkdir -p /app/.streamlit /app/.crawl4ai && \
|
| 32 |
+
chmod 755 /app/.streamlit /app/.crawl4ai
|
| 33 |
|
| 34 |
|
| 35 |
|