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,7 +9,9 @@ BRouter is heavily based on the following libraries:
|
|||
|
||||
## Install dependencies
|
||||
|
||||
```sh
|
||||
yarn
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
|
|
@ -23,7 +25,19 @@ BRouter is heavily based on the following libraries:
|
|||
|
||||
## Develop
|
||||
|
||||
```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
|
||||
|
||||
|
|
|
|||
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