Skip to content

Commit

Permalink
added Docker files #209
Browse files Browse the repository at this point in the history
  • Loading branch information
tagyoureit committed Sep 17, 2020
1 parent 5d1543d commit d43afe4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
npm-debug.log
Dockerfile
dist
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:current as controllerbuild
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build-prod

FROM node:current as releasecontainer
COPY --from=controllerbuild /app/dist/compiled /app
WORKDIR /app
ENTRYPOINT ["node", "/app/index.js"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ If you don't know anything about NodeJS, these directions might be helpful.
1. Verify your pool equipment is correctly identified by inspecting the `/data/*.json` files.
1. Install a [webclient](module_nodejs-poolController--clients) for a browser experience and/or a [binding](module_nodejs-poolController--bindings) to have two way control with Home Automation systems.

For a very thorough walk-through, see [this](https://www.troublefreepool.com/threads/pentair-intellicenter-pool-control-dashboard-instructional-guide.218514/) great thread on Trouble Free Pool. Thanks @MyAZPool.

### Docker instructions
@wurmr created Docker [Dockerfile](https://hub.docker.com/r/wurmr/nodejs-pool-controller) and [pre-built containers](https://github.com/wurmr/nodejs-poolController-docker).

Expand Down
2 changes: 1 addition & 1 deletion defaultConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"authFile": "/users.htpasswd"
},
"https": {
"enabled": true,
"enabled": false,
"ip": "0.0.0.0",
"port": 4201,
"authentication": "none",
Expand Down

0 comments on commit d43afe4

Please sign in to comment.