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
c50a116d
authored
Mar 02, 2020
by
xiaolanchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker
parent
db7ad12c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
Dockerfile
+2
-0
build.sh
+1
-1
start.sh
+0
-4
No files found.
Dockerfile
View file @
c50a116d
...
@@ -7,4 +7,6 @@ ENV TZ Asia/Shanghai
...
@@ -7,4 +7,6 @@ ENV TZ Asia/Shanghai
WORKDIR
"/var/www/web_live"
WORKDIR
"/var/www/web_live"
RUN
npm install pm2
-g
&&
npm install
&&
npm run build
ENTRYPOINT
["./start.sh"]
ENTRYPOINT
["./start.sh"]
build.sh
View file @
c50a116d
#!/bin/sh
#!/bin/sh
VETSION
=
1.0.0
VETSION
=
latest
docker login
--username
=
cuiboqian@1812501212048408 registry.cn-hangzhou.aliyuncs.com
docker login
--username
=
cuiboqian@1812501212048408 registry.cn-hangzhou.aliyuncs.com
docker build
-t
registry.cn-hangzhou.aliyuncs.com/cduan/web-live:
$VETSION
.
docker build
-t
registry.cn-hangzhou.aliyuncs.com/cduan/web-live:
$VETSION
.
...
...
start.sh
View file @
c50a116d
#!/bin/sh
#!/bin/sh
npm install
-g
pm2
&&
npm install
&&
npm run build
&&
npm run pm2
npm run pm2
while
true
while
true
...
...
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