diff options
author | startxfr <clarue@startx.fr> | 2014-12-08 02:35:03 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2014-12-08 02:35:03 +0100 |
commit | ef2c1df934ee7720fd1ccacae042f3deb3b7628d (patch) | |
tree | 005eb1b5402f274f8643fa2d85ffa81da917a225 /Services/nodejs/Dockerfile | |
parent | a7f649b8f1f56a999073550d1b91b5d8d1cd7d81 (diff) | |
download | phpmyadmin-ef2c1df934ee7720fd1ccacae042f3deb3b7628d.tar.gz phpmyadmin-ef2c1df934ee7720fd1ccacae042f3deb3b7628d.tar.bz2 phpmyadmin-ef2c1df934ee7720fd1ccacae042f3deb3b7628d.tar.xz phpmyadmin-ef2c1df934ee7720fd1ccacae042f3deb3b7628d.zip |
adding function and startup script for last services images : memcache, nodejs, ooconv and postresql
Diffstat (limited to 'Services/nodejs/Dockerfile')
-rw-r--r-- | Services/nodejs/Dockerfile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Services/nodejs/Dockerfile b/Services/nodejs/Dockerfile index 0dac7de..872648a 100644 --- a/Services/nodejs/Dockerfile +++ b/Services/nodejs/Dockerfile @@ -1,18 +1,17 @@ FROM startx/fedora MAINTAINER Christophe LARUE <dev@startx.fr> -COPY nodejs_run.sh /bin/ RUN yum -y install nodejs npm \ && yum clean all \ - && mkdir -p /var/www/html \ - && mkdir -p /var/log/httpd \ - && chmod ug+rx /bin/nodejs_* - -WORKDIR /src -COPY app.js /src/app.js + && mkdir -p /var/nodejs /var/nodejs/app \ + && chmod ug+rx /var/nodejs/app +COPY sx/* /sx/ +COPY app/* /var/nodejs/app/ +RUN chmod ug+rx /sx/nodejs* EXPOSE 8000 +VOLUME ["/var/nodejs/app"] + +ENV MAIN_APP /var/nodejs/app/app.js -#CMD ["node", "/src/app.js"] -CMD ["/bin/nodejs_run.sh"] -ONBUILD CMD ["/bin/nodejs_run.sh"]
\ No newline at end of file +CMD ["/sx/nodejs_run.sh"]
\ No newline at end of file |