Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pagedjs-cli
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mathis Poncet
pagedjs-cli
Commits
8ba147d6
Commit
8ba147d6
authored
5 years ago
by
Fred Chasen
Browse files
Options
Downloads
Patches
Plain Diff
Update dockerfile to node 12
parent
6b033c0c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+22
-16
22 additions, 16 deletions
Dockerfile
with
22 additions
and
16 deletions
Dockerfile
+
22
−
16
View file @
8ba147d6
FROM
node:1
0
-stretch
FROM
node:1
2
-stretch
# Application parameters and variables
ENV
NODE_ENV=development
...
...
@@ -19,31 +19,37 @@ RUN apt-get update && \
apt-get
install
-y
libgs-dev
&&
\
rm
-rf
/var/lib/apt/lists/
*
# See https://crbug.com/795759
RUN
apt-get update
&&
apt-get
install
-yq
libgconf-2-4
# See https://github.com/GoogleChrome/puppeteer/blob/master/.ci/node12/Dockerfile.linux
RUN
apt-get update
&&
\
apt-get
-y
install
xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2
\
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0
\
libgtk-3-0 libnspr4 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 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
&&
\
rm
-rf
/var/lib/apt/lists/
*
# Update Freetype
COPY
docker-font.conf /etc/fonts/local.conf
ENV
FREETYPE_PROPERTIES="truetype:interpreter-version=35"
RUN
apt-get update
\
&&
sh
-c
'echo "deb http://http.us.debian.org/debian stable main contrib non-free" >> /etc/apt/sources.list'
\
&&
apt-get update
\
&&
apt-get
install
-y
ttf-mscorefonts-installer
\
--no-install-recommends
\
&&
rm
-rf
/var/lib/apt/lists/
*
&&
sh
-c
'echo "deb http://http.us.debian.org/debian stable main contrib non-free" >> /etc/apt/sources.list'
\
&&
apt-get update
\
&&
apt-get
install
-y
ttf-mscorefonts-installer
\
--no-install-recommends
\
&&
rm
-rf
/var/lib/apt/lists/
*
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work.
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 -
\
&&
sh
-c
'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome-unstable.list'
\
&&
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
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
apt-get purge
--auto-remove
-y
curl
\
&&
rm
-rf
/src/
*
.deb
&&
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-chrome-unstable.list'
\
&&
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
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
apt-get purge
--auto-remove
-y
curl
\
&&
rm
-rf
/src/
*
.deb
# helps prevent zombie chrome processes.
ADD
https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 /usr/local/bin/dumb-init
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment