forked from Shyam-Chen/Vue-Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (26 loc) · 865 Bytes
/
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
FROM node:8
ENV HOME /Vue-Fullstack-Starter
WORKDIR ${HOME}
ADD . $HOME
# chrome --
ENV CHROME_BIN /usr/bin/chromium
ENV DISPLAY :99
RUN \
apt-get update && \
apt-get install -y xvfb chromium libgconf-2-4
ENTRYPOINT ["Xvfb", "-ac", ":99", "-screen", "0", "1280x800x16"]
# -- chrome
# puppeteer --
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.list' && \
apt-get update && \
apt-get install -y google-chrome-unstable --no-install-recommends && \
apt-get purge --auto-remove -y curl
# -- puppeteer
RUN \
rm -rf /var/lib/apt/lists/* && \
rm -rf /src/*.deb
RUN yarn install && yarn typed
EXPOSE 8000 5000