Skip to content

Commit

Permalink
Remove useradd to reference ubuntu user directly
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedearing committed Apr 30, 2024
1 parent 1c869a8 commit faca337
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ RUN ln -snf /usr/share/zoneinfo/US/Pacific /etc/localtime && \
rm -rf /var/lib/dpkg/info/* && \
echo "set editing-mode vi" | tee -a /etc/inputrc && \
echo "set keymap vi" | tee -a /etc/inputrc && \
useradd -u 5000 -m ubuntu && \
echo "ubuntu ALL=(ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/ubuntu-root

COPY tools/check-clock-skew.sh /usr/local/bin/check-clock-skew.sh
Expand All @@ -34,5 +33,5 @@ COPY --chown=5000:5000 zshrc /home/ubuntu/.zshrc
WORKDIR /home/ubuntu

ENV SHELL=/usr/bin/zsh
USER 5000:5000
USER 1000:1000
ENTRYPOINT ["/usr/bin/zsh"]

0 comments on commit faca337

Please sign in to comment.