Merge pull request #308 from schmic/feature/docker-compose-development

add docker-compose tasks for development
This commit is contained in:
Norbert Renner 2020-06-08 18:33:07 +02:00 committed by GitHub
commit a85992d927
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 6 deletions

View file

@ -9,21 +9,35 @@ BRouter is heavily based on the following libraries:
## Install dependencies
yarn
```sh
yarn
```
## Build
```sh
#for development
yarn build debug
#for development
yarn build debug
#for release
yarn build
#for release
yarn build
```
## 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

23
docker-compose.yml Normal file
View 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