Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
-
# Install system dependencies
|
4 |
RUN apt-get update && \
|
5 |
apt-get install -y \
|
6 |
libcrypt-dev \
|
@@ -23,15 +23,14 @@ RUN apt-get update && \
|
|
23 |
|
24 |
WORKDIR /app
|
25 |
|
|
|
|
|
|
|
26 |
COPY requirements.txt .
|
27 |
|
28 |
RUN pip install --upgrade pip
|
29 |
-
|
30 |
RUN pip install --no-cache-dir -r requirements.txt
|
31 |
|
32 |
-
RUN python -c "import fitz; print('PyMuPDF imported successfully')"
|
33 |
-
RUN python -c "from docx import Document; print('python-docx installed successfully')"
|
34 |
-
|
35 |
COPY . .
|
36 |
|
37 |
EXPOSE 7860
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
+
# Install system dependencies
|
4 |
RUN apt-get update && \
|
5 |
apt-get install -y \
|
6 |
libcrypt-dev \
|
|
|
23 |
|
24 |
WORKDIR /app
|
25 |
|
26 |
+
# Create uploads directory with correct permissions
|
27 |
+
RUN mkdir -p /app/uploads && chmod -R 777 /app/uploads
|
28 |
+
|
29 |
COPY requirements.txt .
|
30 |
|
31 |
RUN pip install --upgrade pip
|
|
|
32 |
RUN pip install --no-cache-dir -r requirements.txt
|
33 |
|
|
|
|
|
|
|
34 |
COPY . .
|
35 |
|
36 |
EXPOSE 7860
|