mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 04:45:52 +01:00
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 \
|
||||
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"]
|
||||
|
Loading…
Reference in New Issue
Block a user