2017-11-06 21:19:43 +00:00
|
|
|
FROM node:8.9.0
|
2017-09-04 20:49:43 +00:00
|
|
|
|
|
|
|
ENV APP_HOME=/opt/node/app \
|
|
|
|
TERM=xterm
|
|
|
|
|
|
|
|
# Copy in the project files and set as working directory
|
|
|
|
ADD . $APP_HOME
|
|
|
|
WORKDIR $APP_HOME
|
|
|
|
|
|
|
|
# Install node modules
|
|
|
|
RUN git submodule init && \
|
2017-11-06 21:19:43 +00:00
|
|
|
npm install
|
2017-09-04 20:49:43 +00:00
|
|
|
|
|
|
|
# For development, mark the directory as a mount override point
|
|
|
|
VOLUME $APP_HOME
|
|
|
|
|
|
|
|
# Expose default server port
|
|
|
|
EXPOSE 8000
|