Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:17.8.0
ENV NODE_ENV=production
ENV NODE_OPTIONS=--openssl-legacy-provider
RUN npm install webpack-cli webpack -g

WORKDIR /

COPY ["webpack.config.js", "package.json", "package-lock.json*", "./"]
RUN npm update && npm install
COPY . .
CMD [ "npm", "run", "start" ]
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
### Local UI
```shell
git clone [email protected]:hicsail/constellation-js.git
npm run build && npm run start
npm install && npm run build && npm run start
```
Then open `http://localhost:8082/` on browser

### Docker UI
```shell
git clone [email protected]:hicsail/constellation-js.git
docker build . -t constellation
docker run -d -p 8082:8082 constellation:latest
```
Then open `http://localhost:8082/` on browser

Expand Down
11 changes: 8 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
var path = require('path');

module.exports = {
devServer: {
host: '0.0.0.0',
allowedHosts: 'all'
},
entry: './lib/constellation.js',
output: {
path: path.resolve(__dirname, 'demos/static/js'),
filename: 'constellation.js',
library: 'constellation',
},
node: {
fs: 'empty',
child_process: 'empty',
resolve: {
fallback: {
fs: false
}
},
module: {
rules: [
Expand Down