File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ ARG USR_HOME
1515COPY assets/ /assets/
1616COPY scripts/ /scripts/
1717
18+ # This is a requirement for pushd/popd + ./scripts/pull.bash script
1819SHELL ["/bin/bash" , "-c" ]
1920
2021RUN \
2930 libxml2 lld llvm webkit2gtk xorgproto \
3031 # GitHub Actions deps
3132 bc expac git jq openssh \
32- # yay deps
33+ # yay dep
3334 go && \
34- # Add $USR user / group with sudo access (for yay)
35+ # Add $USR user / group with sudo access (required by yay)
3536 groupadd -r "$USR" && \
3637 useradd --no-log-init -r -g "$USR" "$USR" && \
3738 mkdir "$USR_HOME" && \
@@ -44,11 +45,13 @@ RUN \
4445 pushd yay && \
4546 su "$USR" -c "makepkg -si --noconfirm" && \
4647 popd && \
47- # Install su-exec
48+ # Install 'su-exec'. This utility replaces 'su USR -c ""'. The main advantage
49+ # is that it does not spawn a child and therefore shares environment variables
50+ # with the current shell
4851 su "$USR" -c "yay -S su-exec --noconfirm" && \
4952 # Install libgccjit
5053 su-exec "$USR" yay -S libgccjit --noconfirm && \
51- # Copy needed files to $USR_HOME
54+ # Copy needed files to $USR_HOME/
5255 su-exec "$USR" cp /scripts/pull.bash . && \
5356 su-exec "$USR" cp /assets/PKGBUILD . && \
5457 # Pull Emacs from git repository
You can’t perform that action at this time.
0 commit comments