Showing
1 changed file
with
9 additions
and
9 deletions
@@ -12,18 +12,18 @@ FROM ccr.ccs.tencentyun.com/yoho-base/nodejs | @@ -12,18 +12,18 @@ FROM ccr.ccs.tencentyun.com/yoho-base/nodejs | ||
12 | MAINTAINER jimi <jimi.ji@yoho.cn> | 12 | MAINTAINER jimi <jimi.ji@yoho.cn> |
13 | 13 | ||
14 | ENV NODE_ENV production | 14 | ENV NODE_ENV production |
15 | -ENV NODE_HOME /home/static-ci/ | 15 | +ENV NODE_HOME /home/static-ci |
16 | +RUN mkdir -p "$NODE_HOME" | ||
16 | 17 | ||
17 | -COPY static-ci.tar.gz /home | ||
18 | - | ||
19 | -RUN cd /home && \ | ||
20 | - mkdir -p $NODE_HOME && \ | ||
21 | - mkdir -p /Data/logs/node/static-ci && \ | ||
22 | - tar -xzvf static-ci.tar.gz -C $NODE_HOME && \ | ||
23 | - rm -rf static-ci.tar.gz | ||
24 | - | ||
25 | WORKDIR $NODE_HOME | 18 | WORKDIR $NODE_HOME |
26 | 19 | ||
20 | +COPY static-ci.tar.gz "$(NODE_HOME)" | ||
21 | + | ||
22 | +RUN set -x \ | ||
23 | + && mkdir -p /Data/logs/node/static-ci \ | ||
24 | + && tar -xzvf static-ci.tar.gz -C $NODE_HOME \ | ||
25 | + && rm -rf static-ci.tar.gz | ||
26 | + | ||
27 | #expose port | 27 | #expose port |
28 | EXPOSE 6006 | 28 | EXPOSE 6006 |
29 | 29 |
-
Please register or login to post a comment