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",