fix: slap adduser into another RUN
im abusing the word slap today please help me
This commit is contained in:
parent
15948c1af6
commit
a95019f38d
@ -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 ["."]
|
|
||||||
|
Reference in New Issue
Block a user