Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
cxcy-scoresheet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MathWeb
cxcy-scoresheet
Commits
00f2fe5c
Commit
00f2fe5c
authored
May 22, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the final thing ..
parent
75cf926c
Pipeline
#3318
passed with stages
in 5 minutes and 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
Dockerfile
Dockerfile
+11
-3
pm2-docker.json
pm2-docker.json
+15
-0
No files found.
Dockerfile
View file @
00f2fe5c
...
...
@@ -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
EN
TRYPOINT
["/usr/bin/dumb-init", "--"]
CMD
["
npm", "run", "start:prod
"]
EN
V
DISPLAY :99
CMD
["
pm2-docker", "/usr/src/app/pm2-docker.json
"]
pm2-docker.json
0 → 100644
View file @
00f2fe5c
{
"apps"
:
[
{
"name"
:
"x11"
,
"script"
:
"Xvfb"
,
"args"
:
":99 -screen 0 1024x768x16"
},
{
"name"
:
"app"
,
"script"
:
"npm"
,
"args"
:
"run start:prod"
,
"interpreter"
:
"node"
},
]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment