Commit
•
04d2dbd
1
Parent(s):
8f70d13
Making and Owning /data
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -18,8 +18,8 @@ RUN curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alp
|
|
18 |
# Create a non-root user with UID 1000
|
19 |
RUN useradd -m -u 1000 -s /bin/bash user
|
20 |
|
21 |
-
#
|
22 |
-
RUN chown
|
23 |
|
24 |
# Switch to the non-root user
|
25 |
USER user
|
|
|
18 |
# Create a non-root user with UID 1000
|
19 |
RUN useradd -m -u 1000 -s /bin/bash user
|
20 |
|
21 |
+
# Create the /data directory and set its ownership
|
22 |
+
RUN mkdir /data && chown user:user /data
|
23 |
|
24 |
# Switch to the non-root user
|
25 |
USER user
|