Commit 00f2fe5c authored by nanahira's avatar nanahira

the final thing ..

parent 75cf926c
Pipeline #3318 passed with stages
in 5 minutes and 36 seconds
......@@ -6,8 +6,16 @@ RUN apt-get update \
&& 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 python3 build-essential google-chrome-stable fonts-ipafont-gothic fonts-wqy-microhei fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 dumb-init \
&& apt-get install -y \
python3 build-essential google-chrome-stable fonts-ipafont-gothic fonts-wqy-microhei fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
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 libxtst6 \
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils \
xvfb x11vnc x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps \
--no-install-recommends \
&& npm -g install pm2 \
&& rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
WORKDIR /usr/src/app
......@@ -17,5 +25,5 @@ RUN npm ci && \
COPY . ./
RUN npm run build
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["npm", "run", "start:prod"]
ENV DISPLAY :99
CMD ["pm2-docker", "/usr/src/app/pm2-docker.json"]
{
"apps": [
{
"name": "x11",
"script": "Xvfb",
"args": ":99 -screen 0 1024x768x16"
},
{
"name": "app",
"script": "npm",
"args": "run start:prod",
"interpreter": "node"
},
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment