1 | #
|
2 | # luminati-proxy Dockerfile
|
3 | #
|
4 | # https://github.com/luminati-io/luminati-proxy
|
5 | #
|
6 |
|
7 | # Pull base image.
|
8 | FROM node:10.15.3
|
9 |
|
10 | # Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
|
11 | # Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer installs, work.
|
12 | RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
13 | && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
14 | && apt-get update \
|
15 | && apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \
|
16 | --no-install-recommends \
|
17 | && rm -rf /var/lib/apt/lists/*
|
18 |
|
19 | USER root
|
20 | RUN npm config set user root
|
21 | RUN npm install -g npm@6.4.1
|
22 |
|
23 | # Install Luminati Proxy Manager
|
24 | RUN npm install -g @luminati-io/luminati-proxy
|
25 |
|
26 | # Mark environment as Docker for CLI output
|
27 | ENV DOCKER 1
|
28 |
|
29 | # Define default command.
|
30 | CMD ["luminati", "--help"]
|