Make public/ a docker volume, 1.1.6

... so that another server can host the static files.
This commit is contained in:
Hexagon 2017-01-14 23:45:13 +01:00
parent 2f86cffc6e
commit 60b24afdbf
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ FROM node:alpine
RUN mkdir -p /usr/src/app RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY . /usr/src/app COPY . /usr/src/app
VOLUME /usr/src/app/public
RUN npm install RUN npm install
EXPOSE 8080 EXPOSE 8080
CMD [ "npm", "start" ] CMD [ "npm", "start" ]

View File

@ -1,6 +1,6 @@
{ {
"name" : "cryptalk", "name" : "cryptalk",
"version" : "1.1.5", "version" : "1.1.6",
"description" : "Encrypted HTML5/Node.JS instant chat", "description" : "Encrypted HTML5/Node.JS instant chat",
"main" : "server.js", "main" : "server.js",
"subdomain": "cryptalk", "subdomain": "cryptalk",