mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-08-30 16:55:08 +08:00
chore: optimize Dockerfile (#2504)
This commit is contained in:
+3
-1
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user