Public Repository

Last pushed: 2 years ago
Short Description
deploy https://github.com/yaonie084/angular-gulp-express-boilerplate
Full Description

FROM ubuntu:trusty

MAINTAINER ethan yaonie084@gmail.com

ENV DEBIAN_FRONTEND noninteractive
ENV NODE_ENV staging

Init

RUN apt-get update

Utils

RUN apt-get install -y git nodejs npm ruby mysql-client wget

RUN gem install -y sass

Installation

RUN wget https://gist.githubusercontent.com/julionc/7476620/raw/b27b7e3b51b92be055ee46aefc0acfa459c0bb27/install_phantomjs.sh

RUN sh install_phantomjs.sh

RUN cd /opt && git clone https://github.com/yaonie084/angular-gulp-express-boilerplate.git

WORKDIR /opt/angular-gulp-express-boilerplate

RUN npm install -g gulp bower pm2 sequelize-cli

RUN ln -s /usr/bin/nodejs /usr/bin/node

RUN npm install

Add config file

RUN bower install --allow-root

RUN mkdir /opt/bak && cp -rf ./node_modules /opt/bak

RUN cp -rf ./bower_components /opt/bak

Run server

RUN gulp

CMD ["node", "server/app.js"]

Docker Pull Command
Owner
yaonie084