Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
7 years ago
Commit
48f1f1d22b0aaea59e4abec08ec558a878cbac72
1 parent
dbe4a020
commit
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
Dockerfile
app.js
docker.sh
Dockerfile
0 → 100644
View file @
48f1f1d
############################################################
# Dockerfile to build hystrix + turbin Installed Containers
# Based on centos 6.7
# How to build new image: docker build -t yoho-hystrix-qcloud .
# the hystrix alert need to post events to influxdb.yohoops.org.
# nginx version: 1.12.0
############################################################
#base image : ccr.ccs.tencentyun.com/yoho-base/nodejs
FROM ccr.ccs.tencentyun.com/yoho-base/nodejs
MAINTAINER feng.chen <feng.chen@yoho.cn>
ENV NODE_ENV=production \
NODE_HOME=/home
COPY yohoblk-wap.tar.gz /home
WORKDIR /home
RUN tar -xzvf yohoblk-wap.tar.gz && \
rm -f yohoblk-wap.tar.gz
#expose port
EXPOSE 6004
CMD ["node","/home/yohoblk-wap/app.js"]
...
...
app.js
View file @
48f1f1d
...
...
@@ -109,6 +109,10 @@ try {
require
(
'./dispatch'
)(
app
);
app
.
use
(
'/crm/common/ok.jsp'
,
(
req
,
res
)
=>
{
res
.
status
(
204
).
end
();
});
app
.
all
(
'*'
,
errorHanlder
.
notFound
());
// 404
// YOHO 后置中间件
...
...
docker.sh
0 → 100644
View file @
48f1f1d
rm -rf yohoblk-wap.tar.gz
yarn
if
[[
$1
==
"TEST1"
]]
||
[[
$1
==
"TEST2"
]]
||
[[
$1
==
"TEST3"
]]
then
yarn build
fi
tar -czvf yohoblk-wap.tar.gz
*
\ No newline at end of file
...
...
Please
register
or
login
to post a comment