Skip to content

Commit 6955db9

Browse files
authored
Let user inside container run sudo without password (#636)
1 parent 4f4c02e commit 6955db9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN apt-get update && \
88
build-essential \
99
gettext \
1010
git \
11+
less \
1112
libffi-dev \
1213
libjpeg-dev \
1314
libmemcached-dev \
@@ -25,6 +26,9 @@ RUN apt-get update && \
2526
npm && \
2627
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && \
2728
apt-get install -y nodejs && \
29+
wget https://github.com/helix-editor/helix/releases/download/25.01.1/helix_25.1.1-1_amd64.deb && \
30+
apt-get install -y ./helix_25.1.1-1_amd64.deb && \
31+
rm -f helix_25.1.1-1_amd64.deb && \
2832
apt-get clean && \
2933
rm -rf /var/lib/apt/lists/* && \
3034
dpkg-reconfigure locales && \
@@ -34,7 +38,7 @@ RUN apt-get update && \
3438
mkdir /data && \
3539
groupadd -g $GID pretixuser && \
3640
useradd -ms /bin/bash -d /pretix -u $UID -g pretixuser pretixuser && \
37-
echo 'pretixuser ALL=(ALL) NOPASSWD:SETENV: /usr/bin/supervisord' >> /etc/sudoers && \
41+
echo 'pretixuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
3842
mkdir /static && \
3943
mkdir /etc/supervisord
4044

0 commit comments

Comments
 (0)