mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-30 18:16:42 +10:00
ownership
This commit is contained in:
parent
5d6281bdf4
commit
311915676d
1 changed files with 4 additions and 2 deletions
|
|
@ -68,8 +68,7 @@ ENV USER jackson
|
|||
ENV HOME /$USER/home
|
||||
|
||||
# Make the user's workspace directory
|
||||
RUN mkdir -p $HOME && \
|
||||
chown -R $USER:$USER /$USER
|
||||
RUN mkdir -p $HOME
|
||||
|
||||
# Program environment configuration
|
||||
ENV SSH_AUTH_SOCK $HOME/.ssh.sock
|
||||
|
|
@ -96,6 +95,9 @@ RUN usermod \
|
|||
--groups audio,chrome,video \
|
||||
$USER
|
||||
|
||||
# Take ownership of the desktop user's folder
|
||||
RUN chown -R $USER:$USER /$USER
|
||||
|
||||
# Become the desktop user
|
||||
USER $USER
|
||||
WORKDIR $HOME
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue