chore: optimize Dockerfile (#2504)

This commit is contained in:
Henry Wang
2019-06-27 11:59:57 +01:00
committed by DIYgod
parent 3efbe93b0c
commit 9fc54fe95a
+3 -1
View File
@@ -1,7 +1,8 @@
FROM node:10.15-slim
LABEL MAINTAINER https://github.com/DIYgod/RSSHub/
RUN apt-get update && apt-get install -yq libgconf-2-4 apt-transport-https
RUN apt-get update && apt-get install -yq libgconf-2-4 apt-transport-https --no-install-recommends && apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV NODE_ENV production
ENV TZ Asia/Shanghai
@@ -25,6 +26,7 @@ RUN if [ "$PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" = 0 ]; then \
&& apt-get update \
&& apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \
--no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get purge --auto-remove -y curl \
&& rm -rf /src/*.deb \