Spaces:
Sleeping
Sleeping
Commit ·
da824e6
1
Parent(s): 86329b0
Fix permissions for Chainlit .files directory
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -17,8 +17,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 17 |
# Copy the rest of the application
|
| 18 |
COPY . .
|
| 19 |
|
| 20 |
-
# Create necessary directories
|
| 21 |
-
RUN mkdir -p data/planogram001
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Expose the port Chainlit runs on
|
| 24 |
EXPOSE 8000
|
|
|
|
| 17 |
# Copy the rest of the application
|
| 18 |
COPY . .
|
| 19 |
|
| 20 |
+
# Create necessary directories and set permissions
|
| 21 |
+
RUN mkdir -p data/planogram001 && \
|
| 22 |
+
mkdir -p .files && \
|
| 23 |
+
chmod -R 777 .files && \
|
| 24 |
+
chmod -R 777 data
|
| 25 |
|
| 26 |
# Expose the port Chainlit runs on
|
| 27 |
EXPOSE 8000
|