Fix sqlite readonly permission issue
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -15,8 +15,8 @@ COPY requirements.txt .
|
|
| 15 |
# Install Python dependencies
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
-
# Copy the rest of the application
|
| 19 |
-
COPY . .
|
| 20 |
|
| 21 |
# Hugging Face Spaces require running as a non-root user (UID 1000)
|
| 22 |
RUN useradd -m -u 1000 user
|
|
|
|
| 15 |
# Install Python dependencies
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
+
# Copy the rest of the application and set ownership to the non-root user
|
| 19 |
+
COPY --chown=user:user . .
|
| 20 |
|
| 21 |
# Hugging Face Spaces require running as a non-root user (UID 1000)
|
| 22 |
RUN useradd -m -u 1000 user
|