Archived
1
0

fix: slap adduser into another RUN

im abusing the word slap today please help me
This commit is contained in:
Hikari Kibo 2019-03-20 23:24:18 +08:00 committed by Anmol Sethi
parent 15948c1af6
commit a95019f38d
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB

View File

@ -27,8 +27,9 @@ RUN apt-get update && apt-get install -y \
sudo \ sudo \
openssl \ openssl \
locales \ locales \
net-tools && \ net-tools;
adduser --disabled-password --ingroup sudo --gecos '' coder && \
RUN adduser --disabled-password --ingroup sudo --gecos '' coder && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \ echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user; chmod 0440 /etc/sudoers.d/user;
@ -40,5 +41,4 @@ USER coder
WORKDIR /home/coder WORKDIR /home/coder
EXPOSE 8443 EXPOSE 8443
ENTRYPOINT code-server ENTRYPOINT ["code-server"]
CMD ["."]