提交 039ad586 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix useradd -r conflict with other options

上级 0cc20a42
......@@ -38,10 +38,10 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
&& apt-get update && apt-get install -y --no-install-recommends \
google-chrome-unstable \
&& rm -rf /tmp/* /var/lib/apt/lists/* \
&& apt-get purge --auto-remove \
&& apt-get purge --auto-remove
# Add chatie user.
RUN groupadd -r bot && useradd -r -g bot -d /bot -m -G audio,video,sudo bot \
RUN groupadd bot && useradd -g bot -d /bot -m -G audio,video,sudo bot \
&& mkdir -p /bot/Downloads \
&& chown -R bot:bot /bot \
&& echo "bot ALL=NOPASSWD:ALL" >> /etc/sudoers
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册