Skip to content

Commit ef2f706

Browse files
committed
add Dockerfile to compile script for developing
1 parent c02a07e commit ef2f706

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM ubuntu:18.04
2+
3+
RUN apt-get update && apt-get install -y curl gnupg2 nodejs npm openjdk-11-jdk-headless python
4+
5+
RUN mkdir /src
6+
WORKDIR /src
7+
8+
CMD ["bash", "-c", "npm i && npm run compile"]

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,22 @@ Run compilation and building on production:
9191
$ npm run release
9292
```
9393

94+
### Compiling using Docker Container
95+
96+
Or if you can use docker, you can compile script and css:
97+
98+
```
99+
$ docker build -t thinreports-editor:latest .
100+
$ docker run --rum -v $PWD:/src thinreports-editor:latest
101+
Compiling JavaScript with SIMPLE_OPTIMIZATIONS...
102+
```
103+
104+
And, launch electron on development:
105+
106+
```
107+
$ npm start
108+
```
109+
94110
## License
95111

96112
Thinreports Editor is licensed under the [GPLv3](https://github.com/thinreports/thinreports-editor/blob/master/GPLv3).

0 commit comments

Comments
 (0)