Improve apt process in Dockerfile (#364)
This commit is contained in:
@@ -15,22 +15,20 @@ RUN chmod +x /metrics/source/app/action/index.mjs \
|
|||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends \
|
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends \
|
||||||
&& apt-get install -y ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils \
|
&& apt-get install -y ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
|
||||||
# Install ruby to support github gems
|
# Install ruby to support github gems
|
||||||
# Based on https://github.com/github/linguist and https://github.com/github/licensed
|
# Based on https://github.com/github/linguist and https://github.com/github/licensed
|
||||||
&& apt-get update \
|
|
||||||
&& apt-get install -y ruby-full \
|
&& apt-get install -y ruby-full \
|
||||||
&& apt-get install -y git g++ cmake pkg-config libicu-dev zlib1g-dev libcurl4-openssl-dev libssl-dev ruby-dev \
|
&& apt-get install -y git g++ cmake pkg-config libicu-dev zlib1g-dev libcurl4-openssl-dev libssl-dev ruby-dev \
|
||||||
&& gem install github-linguist \
|
&& gem install github-linguist \
|
||||||
&& gem install licensed \
|
&& gem install licensed \
|
||||||
# Install python for node-gyp
|
# Install python for node-gyp
|
||||||
&& apt-get update \
|
|
||||||
&& apt-get install -y python3 \
|
&& apt-get install -y python3 \
|
||||||
# Install node modules
|
# Install node modules
|
||||||
&& cd /metrics \
|
&& cd /metrics \
|
||||||
&& npm ci \
|
&& npm ci \
|
||||||
# Rebuild indexes
|
# Rebuild indexes
|
||||||
&& npm run index
|
&& npm run index \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
||||||
|
|||||||
Reference in New Issue
Block a user