Skip to content

Commit

Permalink
enhance(scripts/Dockerfile): set builder user id to 1001
Browse files Browse the repository at this point in the history
This will speed up builds on GitHub Actions since runner user id is 1001.
  • Loading branch information
Leonid Pliushch committed Jul 22, 2022
1 parent dc3869a commit c4041bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COPY ./build/termux_download.sh /tmp/build/
RUN apt-get update && \
apt-get -yq upgrade && \
apt-get install -yq sudo lsb-release software-properties-common && \
adduser --disabled-password --shell /bin/bash --gecos "" builder && \
useradd -u 1001 -U -m -s /bin/bash builder \
echo "builder ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/builder && \
chmod 0440 /etc/sudoers.d/builder && \
su - builder -c /tmp/setup-ubuntu.sh && \
Expand Down

0 comments on commit c4041bc

Please sign in to comment.