Authored by jimi.ji

add docker

@@ -15,22 +15,27 @@ ENV NODE_ENV production @@ -15,22 +15,27 @@ 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 RUN mkdir -p "$NODE_HOME"
17 17
18 -#RUN set -x \  
19 -# && yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel -y \  
20 -# && yum install git-core 18 +RUN set -x \
  19 + && yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel -y \
  20 + && yum install git-core
21 21
  22 +COPY id_rsa ~/.ssh/
  23 +COPY id_rsa.pub ~/.ssh/
  24 +RUN set -x \
  25 + && chmod 400 ~/.ssh/id_rsa
  26 +
  27 +
22 WORKDIR $NODE_HOME 28 WORKDIR $NODE_HOME
23 29
24 -COPY static-ci.tar.gz /home/static-ci/  
25 - 30 +COPY static-ci.tar.gz $NODE_HOME
26 31
27 RUN set -x \ 32 RUN set -x \
28 && mkdir -p /Data/logs/node/static-ci \ 33 && mkdir -p /Data/logs/node/static-ci \
29 && tar -xzvf static-ci.tar.gz -C "$NODE_HOME" \ 34 && tar -xzvf static-ci.tar.gz -C "$NODE_HOME" \
30 && rm -rf static-ci.tar.gz 35 && rm -rf static-ci.tar.gz
31 -  
32 36
33 37
  38 +
34 #expose port 39 #expose port
35 EXPOSE 6006 40 EXPOSE 6006
36 41
  1 +-----BEGIN RSA PRIVATE KEY-----
  2 +MIIEpAIBAAKCAQEAmJGwwQR7cTuQzG4+m/PQB4n3mp2GpHxWujS5H9spyrFwq7CW
  3 +sZQJFUeZtuT0TflQIof594YyjymZzfan5wGOAdrEViKvXj4Y3XvdCDU3k0baw76G
  4 +aEkzrHVI519O5gH9xRkqvd0jvguPo3jBKlU0fMmg157C1Cbs9ujUx6R2Iw4HIBt3
  5 +Sv3ghEuk2tV2i3kiHpNo8FfRMky+Usy23T/bfeKXdUYE3f2CRXAVaP4fnItfLIU8
  6 +t9CQ+Py2HkZrvolC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