Merge pull request #42 from seripap/develop

Added Dockerfile (#39)
This commit is contained in:
Daniel Seripap 2016-08-23 09:54:10 -04:00 committed by GitHub
commit 4f388fdbba
4 changed files with 36 additions and 1 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
Dockerfile
node_modules

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM node:6
RUN npm install -g forever
RUN mkdir -p /app
WORKDIR /app
COPY package.json /app
RUN npm install
COPY . /app
RUN npm run bundle
EXPOSE 3000
CMD ["npm", "start"]

View File

@ -1,6 +1,6 @@
{ {
"name": "darkwire", "name": "darkwire",
"version": "1.5.5", "version": "1.5.7",
"description": "Encrypted web socket chat", "description": "Encrypted web socket chat",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {

View File

@ -4,6 +4,24 @@
Simple encrypted web chat. Powered by [socket.io](http://socket.io) and the [web cryptography API](https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto). Simple encrypted web chat. Powered by [socket.io](http://socket.io) and the [web cryptography API](https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto).
### Running a local copy
Starting at version **1.5.7**, you can run a local copy of Darkwire via Docker through dockerhub.
```
$ docker run -d -p 80:3000 --name dakrwire darkwire/1.5.7
```
Docker is now running on local port 80.
### Building Containers
```
$ docker build -t darkwire .
# Running a local instance
$ docker run -p 80:3000 darkwire
```
Darkwire is now online on local port 80. Default container port is 3000.
### Installation ### Installation
# Get latest version of NodeJS for ES2015 support # Get latest version of NodeJS for ES2015 support
npm install -g n npm install -g n