2018-05-18 02:45:48 +02:00
|
|
|
FROM node:8.11.1
|
2017-09-04 22:49:43 +02: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
|
2018-02-22 22:47:25 +01:00
|
|
|
RUN npm install
|
2017-09-04 22:49:43 +02:00
|
|
|
|
2017-11-06 22:56:07 +01:00
|
|
|
# Rebuild node-sass just to be safe
|
|
|
|
RUN npm rebuild node-sass
|
|
|
|
|
2017-09-04 22:49:43 +02:00
|
|
|
# For development, mark the directory as a mount override point
|
|
|
|
VOLUME $APP_HOME
|
|
|
|
|
|
|
|
# Expose default server port
|
|
|
|
EXPOSE 8000
|