Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -11
Dockerfile
CHANGED
@@ -13,18 +13,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
13 |
RUN useradd -m appuser
|
14 |
|
15 |
# Create necessary directories and set permissions
|
16 |
-
RUN mkdir -p /app/data && \
|
17 |
-
chown -R appuser:appuser /app && \
|
18 |
chmod -R 755 /app && \
|
19 |
-
mkdir -p /tmp/app-work && \
|
20 |
-
chown -R appuser:appuser /tmp/app-work && \
|
21 |
-
chmod -R 777 /tmp/app-work
|
22 |
-
|
23 |
-
RUN mkdir -p /app/data /app/indexes && \
|
24 |
-
chown -R appuser:appuser /app && \
|
25 |
-
chmod -R 755 /app && \
|
26 |
-
mkdir -p /tmp/app-work && \
|
27 |
-
chown -R appuser:appuser /tmp/app-work && \
|
28 |
chmod -R 777 /tmp/app-work
|
29 |
|
30 |
# Switch to the non-root user
|
|
|
13 |
RUN useradd -m appuser
|
14 |
|
15 |
# Create necessary directories and set permissions
|
16 |
+
RUN mkdir -p /app/data /app/indexes /tmp/app-work && \
|
17 |
+
chown -R appuser:appuser /app /tmp/app-work && \
|
18 |
chmod -R 755 /app && \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
chmod -R 777 /tmp/app-work
|
20 |
|
21 |
# Switch to the non-root user
|