Skip to content

Commit dc28720

Browse files
authored
docs: improve/add comments (#18)
1 parent 3017f17 commit dc28720

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ARG USR_HOME
1515
COPY assets/ /assets/
1616
COPY scripts/ /scripts/
1717

18+
# This is a requirement for pushd/popd + ./scripts/pull.bash script
1819
SHELL ["/bin/bash", "-c"]
1920

2021
RUN \
@@ -29,9 +30,9 @@ RUN \
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

0 commit comments

Comments
 (0)