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

EXPOSE 8000

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