mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-30 09:36:32 +10:00
gosu
This commit is contained in:
parent
4522e760d4
commit
74df4369fd
1 changed files with 13 additions and 17 deletions
30
Dockerfile
30
Dockerfile
|
|
@ -102,13 +102,6 @@ RUN usermod \
|
|||
# Add user configuration files
|
||||
COPY .motd $HOME
|
||||
|
||||
# Take ownership of the desktop user's folder
|
||||
RUN chown -R $USER:$USER /$USER
|
||||
|
||||
# Become the desktop user
|
||||
USER $USER
|
||||
WORKDIR $HOME
|
||||
|
||||
# Keep desired base user configuration files
|
||||
RUN cp /$BASE_USER/home/.gitconfig $HOME
|
||||
RUN cp /$BASE_USER/home/.tmux.conf $HOME
|
||||
|
|
@ -119,21 +112,24 @@ RUN cp /$BASE_USER/home/.zshrc $HOME
|
|||
# Remove remaining base user files
|
||||
RUN rm -rf $BASE_USER
|
||||
|
||||
# Take ownership of the desktop user's folder
|
||||
RUN chown -R $USER:$USER /$USER
|
||||
|
||||
# Clone dotfiles configuration
|
||||
RUN vcsh clone git://github.com/sabrehagen/dotfiles-alacritty.git && \
|
||||
vcsh clone git://github.com/sabrehagen/dotfiles-alpine.git && \
|
||||
vcsh clone git://github.com/sabrehagen/dotfiles-code.git && \
|
||||
vcsh clone git://github.com/sabrehagen/dotfiles-musikcube.git && \
|
||||
vcsh clone git://github.com/sabrehagen/dotfiles-scripts.git && \
|
||||
vcsh clone git://github.com/sabrehagen/dotfiles-vlc.git && \
|
||||
vcsh clone git://github.com/sabrehagen/dotfiles-x11.git && \
|
||||
vcsh clone git://github.com/sabrehagen/dotfiles-zsh.git
|
||||
RUN gosu $USER vcsh clone git://github.com/sabrehagen/dotfiles-alacritty.git && \
|
||||
gosu $USER vcsh clone git://github.com/sabrehagen/dotfiles-alpine.git && \
|
||||
gosu $USER vcsh clone git://github.com/sabrehagen/dotfiles-code.git && \
|
||||
gosu $USER vcsh clone git://github.com/sabrehagen/dotfiles-musikcube.git && \
|
||||
gosu $USER vcsh clone git://github.com/sabrehagen/dotfiles-scripts.git && \
|
||||
gosu $USER vcsh clone git://github.com/sabrehagen/dotfiles-vlc.git && \
|
||||
gosu $USER vcsh clone git://github.com/sabrehagen/dotfiles-x11.git && \
|
||||
gosu $USER vcsh clone git://github.com/sabrehagen/dotfiles-zsh.git
|
||||
|
||||
# Cache zsh plugins
|
||||
RUN zsh -c "source $HOME/.zshrc"
|
||||
RUN gosu $USER zsh -c "source $HOME/.zshrc"
|
||||
|
||||
# Cache tmux plugins
|
||||
RUN zsh -c "/opt/tpm/bin/install_plugins"
|
||||
RUN gosu $USER zsh -c /opt/tpm/bin/install_plugins
|
||||
|
||||
# Record container build information
|
||||
ARG DESKTOP_CONTAINER_BUILD_DATE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue