add docker-compose tasks for development
This commit is contained in:
parent
bed388df40
commit
11917dc7ee
2 changed files with 43 additions and 6 deletions
|
|
@ -9,21 +9,35 @@ BRouter is heavily based on the following libraries:
|
||||||
|
|
||||||
## Install dependencies
|
## Install dependencies
|
||||||
|
|
||||||
yarn
|
```sh
|
||||||
|
yarn
|
||||||
|
```
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
#for development
|
#for development
|
||||||
yarn build debug
|
yarn build debug
|
||||||
|
|
||||||
#for release
|
#for release
|
||||||
yarn build
|
yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Develop
|
## Develop
|
||||||
|
|
||||||
yarn serve
|
```sh
|
||||||
|
yarn serve
|
||||||
|
```
|
||||||
|
|
||||||
|
### Develop with Docker
|
||||||
|
|
||||||
|
```sh
|
||||||
|
#to install dependencies
|
||||||
|
docker-compose run --rm install
|
||||||
|
|
||||||
|
#to serve for development
|
||||||
|
docker-compose run --rm serve
|
||||||
|
```
|
||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
|
|
||||||
|
|
|
||||||
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
## usage: docker-compose run --rm serve
|
||||||
|
## : docker-compose up (-d) serve
|
||||||
|
serve:
|
||||||
|
command: yarn serve
|
||||||
|
image: node:lts
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
user: '1000'
|
||||||
|
volumes:
|
||||||
|
- ./:/src
|
||||||
|
working_dir: /src
|
||||||
|
|
||||||
|
## usage: docker-compose run --rm install
|
||||||
|
install:
|
||||||
|
command: yarn install
|
||||||
|
image: node:lts
|
||||||
|
user: '1000'
|
||||||
|
volumes:
|
||||||
|
- ./:/src
|
||||||
|
working_dir: /src
|
||||||
Loading…
Add table
Add a link
Reference in a new issue