summaryrefslogtreecommitdiffstats
path: root/Services/nodejs/Dockerfile
blob: 99d302391f0c9028577be416c6099ae1780019a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM startx/fedora
MAINTAINER Chistophe 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

EXPOSE 8000

#CMD ["node", "/src/app.js"]
CMD ["/bin/nodejs_run.sh"]
ONBUILD CMD ["/bin/nodejs_run.sh"]