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 \
openssl \
locales \
net-tools && \
adduser --disabled-password --ingroup sudo --gecos '' coder && \
net-tools;
RUN adduser --disabled-password --ingroup sudo --gecos '' coder && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user;
@ -40,5 +41,4 @@ USER coder
WORKDIR /home/coder
EXPOSE 8443
ENTRYPOINT code-server
CMD ["."]
ENTRYPOINT ["code-server"]