Compile coffeescript to javascript on build

This commit is contained in:
Sam Dodrill 2015-02-09 08:00:57 -08:00
parent aa6ebb8da7
commit aa639c8167
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ RUN cd $SRC_DIR && curl -LO http://openresty.org/download/ngx_openresty-$OPENRES
make && make install && rm -rf ngx_openresty-$OPENRESTY_VERSION* &&\ make && make install && rm -rf ngx_openresty-$OPENRESTY_VERSION* &&\
luarocks install moonscript &&\ luarocks install moonscript &&\
luarocks install moonbox &&\ luarocks install moonbox &&\
npm install -g bower &&\ npm install -g bower && npm install -g coffee-script &&\
ln -s /usr/bin/nodejs /usr/local/bin/node ln -s /usr/bin/nodejs /usr/local/bin/node
ADD lapis /etc/service/lapis/run ADD lapis /etc/service/lapis/run
@ -30,3 +30,4 @@ ONBUILD ADD bower.json /app/src/bower.json
ONBUILD RUN cd /app/src && bower --allow-root install ONBUILD RUN cd /app/src && bower --allow-root install
ONBUILD ADD . /app/src ONBUILD ADD . /app/src
ONBUILD RUN moonc /app/src ONBUILD RUN moonc /app/src
ONBUILD RUN cd /app/src/static && find -name "*.coffee" -exec coffee -c {} \;