Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -92,7 +92,9 @@ RUN apk add --no-cache --virtual .build-deps \
|
|
92 |
# # # Switch to the admin user (now root-equivalent)
|
93 |
# # USER admin
|
94 |
# RUN su - admin
|
95 |
-
|
|
|
|
|
96 |
USER node
|
97 |
RUN doas apk update
|
98 |
# Set the working directory (good practice)
|
|
|
92 |
# # # Switch to the admin user (now root-equivalent)
|
93 |
# # USER admin
|
94 |
# RUN su - admin
|
95 |
+
RUN adduser -G wheel -D root
|
96 |
+
RUN adduser -G wheel -D node
|
97 |
+
RUN echo "permit nopass :wheel as root" > /etc/doas.d/doas.conf
|
98 |
USER node
|
99 |
RUN doas apk update
|
100 |
# Set the working directory (good practice)
|