p5.js-web-editor/Dockerfile-development
2018-05-30 15:29:59 -07:00

20 lines
381 B
Text

FROM node:8.11.1
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 npm install
# Rebuild node-sass just to be safe
RUN npm rebuild node-sass
# For development, mark the directory as a mount override point
VOLUME $APP_HOME
# Expose default server port
EXPOSE 8000