Update Dockerfile
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
@@ -13,13 +13,12 @@ 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 |
# Switch to the non-root user
|
24 |
USER appuser
|
25 |
|
|
|
13 |
RUN useradd -m appuser
|
14 |
|
15 |
# Create necessary directories and set permissions
|
16 |
+
RUN mkdir -p /app/data /app/indexes && \
|
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 |
# Switch to the non-root user
|
23 |
USER appuser
|
24 |
|