Skip to content

Commit

Permalink
chore: optimize Dockerfile (DIYgod#2504)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQW authored and DIYgod committed Jun 27, 2019
1 parent 3efbe93 commit 9fc54fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 9fc54fe

Please sign in to comment.