Public Repository

Last pushed: 5 months ago
Short Description
Short description is empty for this repo.
Full Description

compile_Dockerfile
FROM jkilbride/node-npm-alpine

MAINTAINER Wenlin Huang jackhwl@hotmail.com

RUN apk add --update git curl &&\
curl -Ls https://github.com/fgrehm/docker-phantomjs2/releases/download/v2.0.0-20150722/dockerized-phantomjs.tar.gz \
| tar xz -C / &&\
adduser -D -s /bin/false dev &&\
npm install --global bower@1.8.0 &&\
npm install --global gulp@3.9.1 &&\
npm install gulp@3.9.1 &&\
rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/ /var/cache/apk/ &&\
npm cache clean

ENV HOME=/home/devs

COPY env/node/package.json env/node/bower.json $HOME/portal/

RUN chown -R dev:dev $HOME/*

USER dev
WORKDIR $HOME/portal
RUN bower install && npm install

compile.yml
compile:
build: ../

#context: ../

dockerfile: /env/compile_Dockerfile
command: sh -c "cd test && ../node_modules/karma/bin/karma start"
volumes:

- ../:/home/dev/portal
- /home/dev/portal/bower_components
- /home/dev/portal/node_modules

#sh -c "cd test && ../node_modules/karma/bin/karma start"

#docker-compose -f env\compile.yml build

#docker-compose -f env\compile.yml run --rm --name portal compile

#docker exec -t portal sh -c "env/node/gulpcp.sh && gulp local && env/node/gulprm.sh"

#docker exec -t portal gulp local

#docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz images -s

Docker Pull Command
Owner
jackhwl

Comments (0)