Add steps to the Dockerfile to build the frontend bundles
This commit is contained in:
parent
ede8ed21f4
commit
da30cd86d5
2 changed files with 13 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@ stack
|
||||||
grunt/node_modules
|
grunt/node_modules
|
||||||
dist
|
dist
|
||||||
dest
|
dest
|
||||||
|
node_modules
|
||||||
|
|
13
Dockerfile
13
Dockerfile
|
@ -3,8 +3,15 @@ FROM phusion/baseimage:0.9.9
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
ENV HOME /root
|
ENV HOME /root
|
||||||
|
|
||||||
|
# Needed for this fix: http://stackoverflow.com/a/21715730
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev gdebi-core g++ libmagic1
|
RUN apt-get install -y software-properties-common python-software-properties
|
||||||
|
RUN add-apt-repository ppa:chris-lea/node.js
|
||||||
|
|
||||||
|
# Install the dependencies.
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev gdebi-core g++ libmagic1 nodejs
|
||||||
|
RUN npm install -g grunt-cli
|
||||||
|
|
||||||
ADD binary_dependencies binary_dependencies
|
ADD binary_dependencies binary_dependencies
|
||||||
RUN gdebi --n binary_dependencies/*.deb
|
RUN gdebi --n binary_dependencies/*.deb
|
||||||
|
@ -21,6 +28,7 @@ ADD conf conf
|
||||||
ADD data data
|
ADD data data
|
||||||
ADD endpoints endpoints
|
ADD endpoints endpoints
|
||||||
ADD features features
|
ADD features features
|
||||||
|
ADD grunt grunt
|
||||||
ADD screenshots screenshots
|
ADD screenshots screenshots
|
||||||
ADD static static
|
ADD static static
|
||||||
ADD storage storage
|
ADD storage storage
|
||||||
|
@ -40,6 +48,9 @@ ADD conf/init/nginx.sh /etc/service/nginx/run
|
||||||
ADD conf/init/diffsworker.sh /etc/service/diffsworker/run
|
ADD conf/init/diffsworker.sh /etc/service/diffsworker/run
|
||||||
ADD conf/init/webhookworker.sh /etc/service/webhookworker/run
|
ADD conf/init/webhookworker.sh /etc/service/webhookworker/run
|
||||||
|
|
||||||
|
RUN cd grunt && npm install
|
||||||
|
RUN cd grunt && grunt
|
||||||
|
|
||||||
RUN TEST=true venv/bin/python -m unittest discover
|
RUN TEST=true venv/bin/python -m unittest discover
|
||||||
|
|
||||||
VOLUME ["/conf/stack", "/mnt/logs"]
|
VOLUME ["/conf/stack", "/mnt/logs"]
|
||||||
|
|
Reference in a new issue