feat: build static file in global process
- Create a webui DockerFile - add task `generate-webui` - use task `generate-webui` in build process
This commit is contained in:
parent
faa7fd0f05
commit
5bfcfeb779
4 changed files with 34 additions and 4 deletions
18
webui/Dockerfile
Normal file
18
webui/Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM node:5.4
|
||||
|
||||
ENV WEBUI_DIR /src/webui
|
||||
RUN mkdir -p $WEBUI_DIR
|
||||
|
||||
RUN npm install -g gulp bower
|
||||
|
||||
COPY package.json $WEBUI_DIR/
|
||||
COPY .bowerrc $WEBUI_DIR/
|
||||
COPY bower.json $WEBUI_DIR/
|
||||
|
||||
WORKDIR $WEBUI_DIR
|
||||
RUN npm install
|
||||
RUN bower install --allow-root
|
||||
|
||||
COPY . $WEBUI_DIR/
|
||||
|
||||
EXPOSE 3000 3001 8080
|
|
@ -8,6 +8,14 @@ Træfɪk Web UI provide 2 types of informations:
|
|||
- Providers with their backends and frontends information.
|
||||
- Health of the web server.
|
||||
|
||||
## How to build (for backends developer)
|
||||
|
||||
Use the make file :
|
||||
|
||||
```shell
|
||||
make build # Generate Docker image
|
||||
make generate-webui # Generate static contents in `traefik/static/` folder.
|
||||
```
|
||||
|
||||
## How to build (only for frontends developer)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue