chore: update Dockerfile
This commit is contained in:
parent
e3ec6f08eb
commit
5cf06dd46e
2 changed files with 17 additions and 21 deletions
|
@ -5,14 +5,15 @@ FROM node:6.9.1-slim
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Copy package.json and package-lock.json (if available)
|
# Copy package.json and package-lock.json (if available)
|
||||||
COPY package*.json ./
|
COPY package*.json index.js ./
|
||||||
|
|
||||||
|
COPY app/ ./app/
|
||||||
|
|
||||||
|
COPY config.json.sample config.json
|
||||||
|
|
||||||
# Install production dependencies
|
# Install production dependencies
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
|
|
||||||
# Copy the current directory contents into the container
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV PORT=2222
|
ENV PORT=2222
|
||||||
ENV DEBUG=
|
ENV DEBUG=
|
||||||
|
|
|
@ -4,25 +4,23 @@
|
||||||
"port": 2222
|
"port": 2222
|
||||||
},
|
},
|
||||||
"http": {
|
"http": {
|
||||||
"origins": ["*:*"]
|
"origins": ["*.*"]
|
||||||
},
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"name": null,
|
"name": null,
|
||||||
"password": null
|
"password": null,
|
||||||
|
"privatekey": null
|
||||||
},
|
},
|
||||||
"ssh": {
|
"ssh": {
|
||||||
"host": null,
|
"host": null,
|
||||||
"port": 22,
|
"port": 22,
|
||||||
|
"localAddress": null,
|
||||||
|
"localPort": null,
|
||||||
"term": "xterm-color",
|
"term": "xterm-color",
|
||||||
"readyTimeout": 20000,
|
"readyTimeout": 20000,
|
||||||
"keepaliveInterval": 120000,
|
"keepaliveInterval": 120000,
|
||||||
"keepaliveCountMax": 10
|
"keepaliveCountMax": 10,
|
||||||
},
|
"allowedSubnets": []
|
||||||
"terminal": {
|
|
||||||
"cursorBlink": true,
|
|
||||||
"scrollback": 10000,
|
|
||||||
"tabStopWidth": 8,
|
|
||||||
"bellStyle": "sound"
|
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"text": null,
|
"text": null,
|
||||||
|
@ -30,7 +28,10 @@
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"challengeButton": true,
|
"challengeButton": true,
|
||||||
"allowReauth": false
|
"autoLog": false,
|
||||||
|
"allowReauth": true,
|
||||||
|
"allowReconnect": true,
|
||||||
|
"allowReplay": true
|
||||||
},
|
},
|
||||||
"algorithms": {
|
"algorithms": {
|
||||||
"kex": [
|
"kex": [
|
||||||
|
@ -60,11 +61,5 @@
|
||||||
"zlib@openssh.com",
|
"zlib@openssh.com",
|
||||||
"zlib"
|
"zlib"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"serverlog": {
|
|
||||||
"client": false,
|
|
||||||
"server": false
|
|
||||||
},
|
|
||||||
"accesslog": false,
|
|
||||||
"verify": false
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue