Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -31,15 +31,17 @@ COPY requirements.txt /app/
|
|
| 31 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 32 |
|
| 33 |
# Create and set permissions for the cache directory
|
| 34 |
-
RUN mkdir -p /app/cache /app/VectorDB /app/uploads /app/nltk_data /nltk_data && \
|
| 35 |
-
chmod -R 777 /app/cache /app/VectorDB /app/uploads /app/nltk_data /nltk_data
|
| 36 |
|
| 37 |
# Ensure all relevant directories have the correct permissions
|
| 38 |
RUN chmod -R 777 /app/VectorDB
|
|
|
|
| 39 |
RUN chmod -R 777 /app/uploads
|
| 40 |
RUN chmod -R 777 /app/nltk_data
|
| 41 |
RUN chmod -R 777 /nltk_data
|
| 42 |
RUN chmod -R 777 /app
|
|
|
|
| 43 |
|
| 44 |
# Copy the rest of the application code to /app
|
| 45 |
COPY . /app/
|
|
|
|
| 31 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 32 |
|
| 33 |
# Create and set permissions for the cache directory
|
| 34 |
+
RUN mkdir -p /app/cache /app/VectorDB /app/TableDB /app/uploads /app/nltk_data /nltk_data && \ /app/TableDB
|
| 35 |
+
chmod -R 777 /app/cache /app/VectorDB /app/TableDB /app/uploads /app/nltk_data /nltk_data
|
| 36 |
|
| 37 |
# Ensure all relevant directories have the correct permissions
|
| 38 |
RUN chmod -R 777 /app/VectorDB
|
| 39 |
+
RUN chmod -R 777 /app/TableDB
|
| 40 |
RUN chmod -R 777 /app/uploads
|
| 41 |
RUN chmod -R 777 /app/nltk_data
|
| 42 |
RUN chmod -R 777 /nltk_data
|
| 43 |
RUN chmod -R 777 /app
|
| 44 |
+
RUN chmod -R 777 /app/TableDB
|
| 45 |
|
| 46 |
# Copy the rest of the application code to /app
|
| 47 |
COPY . /app/
|