yokoiwahiroki
7/28/2017 - 2:29 AM

170728 docker:server

170728 docker:server

name: 'playground-server'
description: ''
version: '0.0.1'
scripts:
  'watch:pug'    : 'pug --out ~/dist --watch ~/mount/src'
  'watch:stylus' : 'stylus --out ~/dist --watch ~/mount/src'
  'watch:coffee' : 'coffee --compile --output ~/dist --watch ~/mount/src'
  'watch:server' : 'browser-sync start --server ~/dist --port 80 --files ~/dist'
  'watch'        : 'npm-run-all --parallel watch:*'
dependencies:
  'npm-run-all'  : 'latest'
  'chokidar-cli' : 'latest'
  'pug-cli'      : 'latest'
  'stylus'       : 'latest'
  'coffeescript' : 'latest'
  'browser-sync' : 'latest'
FROM node
MAINTAINER yokoiwa

WORKDIR /root
RUN npm install cson
ENV PATH $PATH:./node_modules/.bin
COPY ./package.cson ./
RUN cson2json ./package.cson > ./package.json
RUN npm install
EXPOSE 80 8080

CMD npm run watch