未验证 提交 a95019f3 编写于 作者: H Hikari Kibo 提交者: Anmol Sethi

fix: slap adduser into another RUN

im abusing the word slap today please help me
上级 15948c1a
......@@ -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"]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册