From 94ae46ee9ae206751a5bd582a3af3ba35b637c3f Mon Sep 17 00:00:00 2001 From: Hexagon Date: Mon, 4 Dec 2017 22:12:04 +0100 Subject: [PATCH] Minor fix --- docker-entrypoint.sh | 7 +++++-- package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 04b3901..ba0c062 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,7 +2,10 @@ set -e -mkdir /usr/src/app/external-public/ -cp -R /usr/src/app/public/* /usr/src/app/external-public/ +# /usr/src/app/external-public kan be mounted as a volume on host to expose +# statics to be hosted by host nginx +if [ -d /usr/src/app/external-public ]; then + cp -R /usr/src/app/public/* /usr/src/app/external-public/ +fi exec "$@" diff --git a/package.json b/package.json index 3c47a7f..4426879 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "cryptalk", - "version" : "1.1.18", + "version" : "1.1.19", "description" : "Encrypted HTML5/Node.JS instant chat", "main" : "server.js", "subdomain": "cryptalk",