mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 10:49:02 +00:00
commit
4f388fdbba
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Dockerfile
|
||||||
|
node_modules
|
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
@ -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": {
|
||||||
|
18
readme.md
18
readme.md
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user