Skip to content

Commit

Permalink
stop initial-log with useradd to overcome freezing behavior at "expor…
Browse files Browse the repository at this point in the history
…ting layers" in docker build
  • Loading branch information
mezdahun committed Jan 10, 2024
1 parent d62269e commit 9e5e93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN pip install -e /app
ENV GID 1330493118
ENV UID 1330493118
RUN groupadd --gid $GID appgroup && \
useradd -r -d /app -g appgroup -G root,sudo -u $UID appuser
useradd -r -d /app -g appgroup -G root,sudo -l -u $UID appuser

RUN adduser appuser sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
Expand Down

0 comments on commit 9e5e93d

Please sign in to comment.