Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
broadcast_cloud
/
web-live
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
2
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d898fe50
authored
Sep 11, 2020
by
xiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pDockerfile
parent
55d4b418
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
pDockerfile
+16
-0
pStart.sh
+10
-0
No files found.
pDockerfile
0 → 100644
View file @
d898fe50
FROM registry.cn-hangzhou.aliyuncs.com/open_images/node12.13.1-pm2-zabbix
ADD ./ /var/www/web_live
EXPOSE 3000
ENV TZ Asia/Shanghai
WORKDIR "/var/www/web_live"
RUN chmod +x pStart.sh && \
yarn install && \
yarn build:private && \\
shopt -s extglob && \\
rm -rf !(node_modules|nuxt-dist|static|package.json|nuxt.config.js|pm2.json|pDockerfile|pStart.sh)
ENTRYPOINT ["./start.sh"]
pStart.sh
0 → 100644
View file @
d898fe50
#!/bin/sh
/etc/init.d/zabbix_agentd start
&&
\
npm config
set
scripts-prepend-node-path
true
&&
\
yarn run pm2:private
while
true
do
sleep 5
;
done
\ No newline at end of file
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