donal
2018-05-09 e480bbd65965a3e3870d2ffeb6bcf80eaefeff65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM registry.access.redhat.com/rhscl/nodejs-6-rhel7
 
WORKDIR /usr/src/app
 
ENV FIX_DIR /usr/src/app
 
USER root
RUN chown -R "1001" "${FIX_DIR}" && \
    chgrp -R 0 "${FIX_DIR}" && \
    chmod -R g+rw "${FIX_DIR}" && \
    find "${FIX_DIR}" -type d -exec chmod g+x {} +
 
USER 1001
 
RUN scl enable rh-nodejs6 'npm install http-server'
 
COPY dist /usr/src/app
 
CMD ["./node_modules/.bin/http-server"]