Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# Use an official Python runtime as a parent image
|
| 2 |
FROM python:3.10.9
|
| 3 |
|
| 4 |
-
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
COPY requirements.txt /app
|
|
@@ -14,9 +14,9 @@ RUN useradd -m appuser
|
|
| 14 |
|
| 15 |
# Create necessary directories and set permissions
|
| 16 |
RUN mkdir -p /app/data /app/indexes /tmp/app-work && \
|
| 17 |
-
|
| 18 |
-
chmod -R
|
| 19 |
-
|
| 20 |
|
| 21 |
# Switch to the non-root user
|
| 22 |
USER appuser
|
|
|
|
| 1 |
# Use an official Python runtime as a parent image
|
| 2 |
FROM python:3.10.9
|
| 3 |
|
| 4 |
+
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
COPY requirements.txt /app
|
|
|
|
| 14 |
|
| 15 |
# Create necessary directories and set permissions
|
| 16 |
RUN mkdir -p /app/data /app/indexes /tmp/app-work && \
|
| 17 |
+
chmod -R 776 /app && \
|
| 18 |
+
chmod -R 776 /tmp/app-work && \
|
| 19 |
+
chown -R appuser:appuser /app /tmp/app-work
|
| 20 |
|
| 21 |
# Switch to the non-root user
|
| 22 |
USER appuser
|