diff --git a/Dockerfile b/Dockerfile index 879cff6..40dbac5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ FROM node:alpine -RUN mkdir -p /usr/src/app/public -WORKDIR /usr/src/app COPY . /usr/src/app -RUN npm install +RUN npm install && \ + npm cache clean EXPOSE 8080 RUN chmod +x /usr/src/app/docker-entrypoint.sh -ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh", "npm", "start"] +ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh", "npm", "start"] \ No newline at end of file diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2203ae2..72cdacc 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -3,5 +3,6 @@ set -e cp -R /usr/src/app/public/* /usr/src/app/external-public/ +cd /usr/src/app exec "$@" diff --git a/package.json b/package.json index 058b77e..7e715a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "cryptalk", - "version" : "1.1.12", + "version" : "1.1.13", "description" : "Encrypted HTML5/Node.JS instant chat", "main" : "server.js", "subdomain": "cryptalk",