rm-dev-null commited on
Commit
6af6f40
·
verified ·
1 Parent(s): 1b983e7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,10 +1,11 @@
1
  FROM linuxserver/heimdall
2
 
3
- # Create custom user (matching PUID/PGID)
4
- RUN groupadd -g 1000 user && \
5
- useradd -u 1000 -g user -d /app user && \
6
- usermod -a -G abc user
7
-
8
- # Set environment variables
9
  ENV PUID=1000
10
- ENV PGID=1000
 
 
 
 
 
 
 
1
  FROM linuxserver/heimdall
2
 
3
+ # Use environment variables to control permissions
 
 
 
 
 
4
  ENV PUID=1000
5
+ ENV PGID=1000
6
+
7
+ # Modify existing abc user instead of creating new
8
+ RUN \
9
+ usermod -l newusername abc && \
10
+ groupmod -n newgroupname abc && \
11
+ usermod -d /app -m newusername