butlerx
8 years ago
9 changed files with 3207 additions and 148 deletions
@ -0,0 +1,2 @@ |
|||
node_modules/ |
|||
public/ |
@ -0,0 +1,47 @@ |
|||
{ |
|||
"extends": "standard", |
|||
"env": { |
|||
"es6": true, |
|||
"jest": true, |
|||
"node": true |
|||
}, |
|||
"globals": { |
|||
"GENTLY": true |
|||
}, |
|||
"rules": { |
|||
"no-multi-spaces": 0, |
|||
"comma-dangle": [ |
|||
"error", |
|||
"always-multiline" |
|||
], |
|||
"key-spacing": [ |
|||
"error", |
|||
{ |
|||
"multiLine": { |
|||
"beforeColon": false, |
|||
"afterColon": true |
|||
}, |
|||
"align": { |
|||
"beforeColon": false, |
|||
"afterColon": true, |
|||
"on": "colon", |
|||
"mode": "strict" |
|||
} |
|||
} |
|||
], |
|||
"semi": [ |
|||
"error", |
|||
"always" |
|||
], |
|||
"no-var": [ |
|||
"error" |
|||
], |
|||
"prefer-const": [ |
|||
"error", |
|||
{ |
|||
"destructuring": "any", |
|||
"ignoreReadBeforeAssign": false |
|||
} |
|||
] |
|||
} |
|||
} |
@ -1,15 +1,12 @@ |
|||
FROM node:0.10.38 |
|||
FROM node:boron |
|||
MAINTAINER Nathan LeClaire <nathan@docker.com> |
|||
|
|||
ADD . /app |
|||
WORKDIR /app |
|||
RUN apt-get update && apt-get upgrade |
|||
RUN npm install |
|||
RUN apt-get update |
|||
RUN apt-get install -y vim |
|||
RUN useradd -d /home/term -m -s /bin/bash term |
|||
RUN echo 'term:term' | chpasswd |
|||
|
|||
EXPOSE 3000 |
|||
|
|||
ENTRYPOINT ["node"] |
|||
CMD ["app.js", "-p", "3000"] |
|||
CMD ["app.js"] |
|||
|
@ -1,3 +1,3 @@ |
|||
#!/usr/bin/env node
|
|||
|
|||
require("../app"); |
|||
require('../app'); |
|||
|
@ -0,0 +1,15 @@ |
|||
version: "3" |
|||
|
|||
services: |
|||
wetty: |
|||
image: node:boron |
|||
container_name: wetty |
|||
build: . |
|||
tty: true |
|||
working_dir: /app |
|||
ports: |
|||
- "3000:3000" |
|||
environment: |
|||
PORT: 3000 |
|||
SSHHOST: 'localhost' |
|||
SSHPORT: 22 |
File diff suppressed because it is too large
Loading…
Reference in new issue