laopo001 commited on
Commit
efbde9c
·
verified ·
1 Parent(s): 5563b70

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -1
Dockerfile CHANGED
@@ -20,4 +20,14 @@ RUN npm i -g @dadigua/hyper-chat
20
 
21
  ENV NODE_ENV=production
22
 
23
- CMD ["npx", "hyper-chat", "--appDataDir=/data"]
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  ENV NODE_ENV=production
22
 
23
+ # Set up a new user named "user" with user ID 1000
24
+ RUN useradd -m -u 1000 user
25
+
26
+ # Switch to the "user" user
27
+ USER user
28
+
29
+ # Set home to the user's home directory
30
+ ENV HOME=/home/user \
31
+ PATH=/home/user/.local/bin:$PATH
32
+
33
+ CMD ["npx", "hyper-chat", "--appDataDir=/data/HyperChat"]