-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
51 lines (39 loc) · 1.74 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM bitnami/node:12-debian-10
ENV \
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true \
NPM_CONFIG_UNSAFE_PERM=true \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
RUN apt-get update && apt-get install -y gnupg2 \
&& rm -rf /etc/apt/sources.list.d/* \
&& apt-get clean
RUN curl -sS https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list \
&& apt-get -y update && apt-get -y install google-chrome-stable php-cli php-mysql php-mbstring php-xml default-mysql-client apt-transport-https \
&& rm -rf /etc/apt/sources.list.d/* \
&& apt-get clean
RUN apt-get -qqy update \
&& apt-get -qqy --no-install-recommends install \
libfontconfig \
libfreetype6 \
xfonts-cyrillic \
xfonts-scalable \
fonts-liberation \
fonts-ipafont-gothic \
fonts-wqy-zenhei \
&& apt-get -qyy clean
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get install -y yarn \
&& rm -rf /etc/apt/sources.list.d/* \
&& apt-get clean
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& mv composer.phar /usr/local/bin/composer
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y nodejs
ENV PATH="/app/node_modules/.bin:/var/www/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
RUN mkdir /home/node; npm install -g --unsafe-perm=true --allow-root backstopjs gulp-cli
EXPOSE 3000
WORKDIR /app
CMD [ "node" ]