From ddd100514120c9b8bd8105d6ffa09a33013550c9 Mon Sep 17 00:00:00 2001 From: Hexagon Date: Tue, 17 Jan 2017 22:50:05 +0100 Subject: [PATCH] Minimizing Dockerfile. 1.1.13 --- Dockerfile | 7 +++---- docker-entrypoint.sh | 1 + package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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",