Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -17,6 +17,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 17 |
# Copy the rest of the application code
|
| 18 |
COPY --chown=user:user . /home/user/app
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
# Switch to the non-root user
|
| 21 |
USER user
|
| 22 |
|
|
|
|
| 17 |
# Copy the rest of the application code
|
| 18 |
COPY --chown=user:user . /home/user/app
|
| 19 |
|
| 20 |
+
# Ensure the user has write permissions to the working directory
|
| 21 |
+
RUN chown -R user:user /home/user/app
|
| 22 |
+
|
| 23 |
# Switch to the non-root user
|
| 24 |
USER user
|
| 25 |
|