Setup skeleton files for new front end build tool (Node, Webpack, React, Typescript)
This commit is contained in:
parent
8d39ed6d27
commit
9015b09026
9 changed files with 120 additions and 5 deletions
16
Dockerfile
16
Dockerfile
|
@ -68,8 +68,21 @@ RUN chmod +x /usr/local/bin/jwtproxy
|
|||
RUN curl -L -o /usr/local/bin/prometheus-aggregator https://github.com/coreos/prometheus-aggregator/releases/download/v0.0.1-alpha/prometheus-aggregator
|
||||
RUN chmod +x /usr/local/bin/prometheus-aggregator
|
||||
|
||||
# Install Grunt
|
||||
# Install Webpack, Typescript, React
|
||||
RUN ln -s /usr/bin/nodejs /usr/bin/node
|
||||
ADD package.json package.json
|
||||
ADD webpack.config.js webpack.config.js
|
||||
ADD typings.json typings.json
|
||||
RUN npm install
|
||||
RUN npm link typescript
|
||||
|
||||
# Add static files
|
||||
ADD static static
|
||||
|
||||
# Run Webpack
|
||||
RUN npm run build
|
||||
|
||||
# Install Grunt
|
||||
RUN npm install -g grunt-cli
|
||||
|
||||
# Install Grunt depenencies
|
||||
|
@ -77,7 +90,6 @@ ADD grunt grunt
|
|||
RUN cd grunt && npm install
|
||||
|
||||
# Run grunt
|
||||
ADD static static
|
||||
RUN cd grunt && grunt
|
||||
|
||||
RUN apt-get remove -y --auto-remove python-dev g++ libjpeg62-dev libevent-dev libldap2-dev libsasl2-dev libpq-dev libffi-dev libgpgme11-dev nodejs npm
|
||||
|
|
Reference in a new issue