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

clean docker file

上级 d10b890a
......@@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
sudo \
ttf-freefont \
vim \
wget \
&& rm -rf /tmp/* /var/lib/apt/lists/* \
&& apt-get purge --auto-remove
......@@ -32,15 +33,12 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
# https://github.com/ebidel/try-puppeteer/blob/master/backend/Dockerfile
# Install latest chrome dev package.
# Note: this also installs the necessary libs so we don't need the previous RUN command.
RUN apt-get update && apt-get install -y wget --no-install-recommends \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-unstable \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& 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 \
&& rm -rf /src/*.deb
# Add chatie user.
RUN groupadd -r bot && useradd -r -g bot -d /bot -m -G audio,video,sudo bot \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册