Spaces:
Build error
Build error
PV permission fix
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -21,6 +21,9 @@ WORKDIR $HOME
|
|
| 21 |
# Copy the application files into the non-root user's home directory, ensuring the user owns the copied files
|
| 22 |
COPY --chown=user:user . ./app
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
# Change to the non-root user
|
| 25 |
USER user
|
| 26 |
|
|
|
|
| 21 |
# Copy the application files into the non-root user's home directory, ensuring the user owns the copied files
|
| 22 |
COPY --chown=user:user . ./app
|
| 23 |
|
| 24 |
+
# Create the /home/user/data directory and ensure it has the correct permissions
|
| 25 |
+
RUN mkdir -p ./data && chown user:user ./data
|
| 26 |
+
|
| 27 |
# Change to the non-root user
|
| 28 |
USER user
|
| 29 |
|